Skip to content

Commit

Permalink
Support tags with a v prefix
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Rockwood <[email protected]>
  • Loading branch information
benr committed Oct 6, 2023
1 parent 73277ac commit e1da653
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit e1da653

Please sign in to comment.