From 134856377cfb616599ffc393f28122ee101f5a1a Mon Sep 17 00:00:00 2001 From: Tarrence van As Date: Tue, 16 Apr 2024 11:29:34 -0400 Subject: [PATCH] Fix version formatting on release-dispatch --- .github/workflows/release-dispatch.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-dispatch.yml b/.github/workflows/release-dispatch.yml index 0a8a08c3f6..68713ffbab 100644 --- a/.github/workflows/release-dispatch.yml +++ b/.github/workflows/release-dispatch.yml @@ -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