Skip to content

Commit

Permalink
Strip version v prefix with release-dispatch (starkware-libs#1825)
Browse files Browse the repository at this point in the history
Makes it a bit easier to use the action
  • Loading branch information
tarrencev authored Apr 12, 2024
1 parent 59ff3a6 commit 9a814ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ jobs:
# Workaround described here: https://github.com/actions/checkout/issues/760
- uses: actions/checkout@v3
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- run: cargo release version ${{ inputs.version }} --execute --no-confirm && cargo release replace --execute --no-confirm
- run: |
version=${{ inputs.version }}
version=${version#v}
cargo release version ${{ inputs.version }} --execute --no-confirm && cargo release replace --execute --no-confirm
- id: version_info
run: |
cargo install cargo-get
Expand Down

0 comments on commit 9a814ad

Please sign in to comment.