Skip to content

Commit 9e064e4

Browse files
authored
Fix publish javadoc (#77)
By having a default value for `dry-run` in the build action and checking for mere presence as `!inputs.dry-run`, the default was effectively true. As a result, [the latest javadoc publishing failed][1]. Change all conditions to check for `true` and let `build-javadoc` upload artifacts even when dry-run, as it only matters that `publish-javadoc` not push them the branch afterwards. [1]: https://github.com/gabrielfeo/gradle-enterprise-api-kotlin/actions/runs/5081949753/jobs/9131025423
1 parent 11ed3a9 commit 9e064e4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/actions/build/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ runs:
3535
gradle ${{ inputs.args }}
3636
fi
3737
- name: Upload
38-
if: ${{ inputs.path-to-upload && !inputs.dry-run }}
38+
if: ${{ inputs.path-to-upload }}
3939
uses: actions/upload-artifact@v3.0.0
4040
with:
4141
name: ${{ inputs.artifact-name }}
4242
path: ${{ inputs.path-to-upload }}
43-
if-no-files-found: error
43+
if-no-files-found: warn

.github/workflows/publish-javadoc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ on:
88
dry_run:
99
description: 'Dry run'
1010
type: boolean
11-
required: false
11+
default: false
1212
workflow_call:
1313
inputs:
1414
dry_run:
1515
description: 'Dry run'
1616
type: boolean
17-
required: true
17+
default: false
1818

1919
defaults:
2020
run:

.github/workflows/publish-library.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ on:
88
dry_run:
99
description: 'Dry run'
1010
type: boolean
11-
required: false
11+
default: false
1212
workflow_call:
1313
inputs:
1414
dry_run:
1515
description: 'Dry run'
1616
type: boolean
17-
required: true
17+
default: false
1818

1919
defaults:
2020
run:

.github/workflows/update-api-spec.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ on:
88
dry_run:
99
description: 'Dry run'
1010
type: boolean
11-
required: false
11+
default: false
1212
workflow_call:
1313
inputs:
1414
dry_run:
1515
description: 'Dry run'
1616
type: boolean
17-
required: true
17+
default: false
1818

1919
defaults:
2020
run:
@@ -34,7 +34,7 @@ jobs:
3434
fi
3535
rm new.txt || true
3636
- name: 'Create PR'
37-
if: ${{ !inputs.dry_run && env.NEW_VERSION }}
37+
if: ${{ inputs.dry_run != true && env.NEW_VERSION }}
3838
uses: peter-evans/create-pull-request@v5
3939
with:
4040
branch: "feature/api-spec-${{ env.NEW_VERSION }}"

0 commit comments

Comments
 (0)