From 9a814ad59b3855bf8f3bbdeefe13c407cf4edf87 Mon Sep 17 00:00:00 2001 From: Tarrence van As Date: Fri, 12 Apr 2024 10:07:17 -0400 Subject: [PATCH] Strip version v prefix with release-dispatch (#1825) Makes it a bit easier to use the action --- .github/workflows/release-dispatch.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-dispatch.yml b/.github/workflows/release-dispatch.yml index 0e3faa3d13..0a8a08c3f6 100644 --- a/.github/workflows/release-dispatch.yml +++ b/.github/workflows/release-dispatch.yml @@ -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