File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- name : publish crates
1+ name : " publish crates"
22on :
33 push :
44 branches : ["**"]
@@ -9,6 +9,7 @@ permissions: {}
99
1010jobs :
1111 set-up :
12+ if : ${{ !( github.workflow == 'publish crates' && startsWith(github.event.head_commit.message, 'release:') && github.event.head_commit.author.name == 'github-actions[bot]' ) }}
1213 runs-on : ubuntu-latest
1314 permissions : {}
1415 outputs :
1920 DRY_RUN : ${{ github.workflow == 'publish crates' }}
2021 run : echo "dry-run=$DRY_RUN" >> $GITHUB_OUTPUT
2122 publish :
22- if : ${{ !( github.workflow == 'crates publish' && startsWith(github.event.head_commit.message, 'release:') && github.event.head_commit.author.name == 'github-actions[bot]' ) }}
2323 needs : ["set-up"]
24- name : " ${{ needs.set-up.outputs.dry-run && 'DRY-RUN' || '' }} publish"
24+ name : " ${{ fromJson( needs.set-up.outputs.dry-run) && 'DRY-RUN' || '' }} publish"
2525 runs-on : ubuntu-latest
2626 permissions : {}
2727 steps :
3232 - uses : katyo/publish-crates@33e1d18666cdfacf9f6c3547194d2c1d39cbf849 # v2
3333 with :
3434 registry-token : ${{ secrets.CARGO_REGISTRY_TOKEN }}
35- dry-run : ${{ true || needs.set-up.outputs.dry-run }}
35+ dry-run : ${{ true || fromJson( needs.set-up.outputs.dry-run) }}
3636 ignore-unpublished-changes : true
You can’t perform that action at this time.
0 commit comments