From e1da6539124342db51294292cd89aba1117f58c4 Mon Sep 17 00:00:00 2001 From: Ben Rockwood Date: Fri, 6 Oct 2023 12:44:02 -0700 Subject: [PATCH] Support tags with a v prefix Signed-off-by: Ben Rockwood --- .github/workflows/update-version.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index 2b22e0c2..e3f76cc3 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -22,11 +22,13 @@ jobs: - name: Version from Workflow Dispatch if: github.event_name == 'workflow_dispatch' run: | - echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV + V=$(echo ${{ github.event.inputs.version }} | sed 's/v//g') + echo "VERSION=${V}" >> $GITHUB_ENV - name: Version from Release Tag if: github.event_name == 'release' run: | - echo "VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV + V=$(echo ${{ github.event.release.tag_name }} | sed 's/v//g') + echo "VERSION=${V}" >> $GITHUB_ENV - name: Verify valid version id: vars run: |