Skip to content

Commit 1355d7f

Browse files
authored
Merge pull request #266 from metcalfc/fix-version-tag
Fix version tag issue and update workflows
2 parents 997ded8 + d9667ba commit 1355d7f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ jobs:
2525
name: Release ${{ github.ref }}
2626
body: ${{ steps.changelog.outputs.changelog }}
2727
token: ${{ secrets.GITHUB_TOKEN }}
28+
- name: Update Major Version Tag
29+
run: |
30+
MAJOR_VERSION=v$(echo "${{ github.ref }}" | grep -oE '^v[0-9]+')
31+
git tag -f $MAJOR_VERSION
32+
git push origin $MAJOR_VERSION --force
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)