Skip to content

Commit

Permalink
ci: Update publish-crates.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi authored Mar 3, 2024
1 parent 8e471ed commit 1deb4df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ permissions: {}

jobs:
set-up:
if: ${{ !( inputs == null && startsWith(github.event.head_commit.message, 'release:') && github.event.head_commit.author.name == 'github-actions[bot]' ) }}
if: ${{ !( toJSON(inputs) == '{}' && startsWith(github.event.head_commit.message, 'release:') && github.event.head_commit.author.name == 'github-actions[bot]' ) }}
runs-on: ubuntu-latest
permissions: {}
outputs:
dry-run: ${{ steps.set-dry-run.outputs.dry-run }}
steps:
- id: set-dry-run
env:
DRY_RUN: ${{ inputs == null || inputs.dry-run == true }}
DRY_RUN: ${{ toJSON(inputs) == '{}' || inputs.dry-run == true }}
run: echo "dry-run=$DRY_RUN" >> $GITHUB_OUTPUT
publish:
needs: ["set-up"]
Expand Down

0 comments on commit 1deb4df

Please sign in to comment.