Skip to content

Commit

Permalink
Fix conditional variable in cargo release cmd (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmynk committed Oct 26, 2023
1 parent 7fbaf20 commit 7ccff22
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ jobs:
with:
crate: cargo-release
- name: 📦 Publish
run: cargo release --no-confirm --execute --no-publish=${{ github.event.inputs.publish == 'false' }} ${{ github.event.inputs.release-level }}
run: |
args=""
if [ "${{ github.event.inputs.publish }}" == "false" ]; then
args="--no-publish"
fi
cargo release --no-confirm --execute $args --level ${{ github.event.inputs.release-level }}
env:
CRATE_NAME: tc
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand Down

0 comments on commit 7ccff22

Please sign in to comment.