Skip to content

Commit 53816a8

Browse files
fix: update release workflow for scheduled event (#189)
During scheduled events, inputs are null, so we need to set this logic with contains() so we can: - default to maven_publish=true, when workflow_dispatch is called - allow maven_publish=true, when workflow_dispatch is called - default to maven_publish=true, when running on a schedule
1 parent 44df2b4 commit 53816a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
with:
8181
snapshot: ${{ !(inputs.live-run || false) }}
8282
branch: ${{ needs.tag.outputs.branch }}
83-
maven_publish: ${{ inputs.maven_publish }}
83+
maven_publish: ${{ !contains(inputs.maven_publish, 'false') }}
8484
permissions:
8585
contents: read
8686
packages: write
@@ -93,7 +93,7 @@ jobs:
9393
with:
9494
snapshot: ${{ !(inputs.live-run || false) }}
9595
branch: ${{ needs.tag.outputs.branch }}
96-
maven_publish: ${{ inputs.maven_publish }}
96+
maven_publish: ${{ !contains(inputs.maven_publish, 'false') }}
9797
permissions:
9898
contents: read
9999
packages: write

0 commit comments

Comments
 (0)