Skip to content

Commit

Permalink
Fix version formatting on release-dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Apr 16, 2024
1 parent 3153a80 commit 1348563
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ jobs:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:8d66222
env:
VERSION: ""
steps:
# Workaround described here: https://github.com/actions/checkout/issues/760
- uses: actions/checkout@v3
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- run: |
version=${{ inputs.version }}
version=${version#v}
cargo release version ${{ inputs.version }} --execute --no-confirm && cargo release replace --execute --no-confirm
VERSION=${{ inputs.version }}
VERSION=${VERSION#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
cargo release version ${{ env.VERSION }} --execute --no-confirm && cargo release replace --execute --no-confirm
- id: version_info
run: |
cargo install cargo-get
Expand Down

0 comments on commit 1348563

Please sign in to comment.