We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88c9db0 commit bac7ac2Copy full SHA for bac7ac2
.github/workflows/major-release-tag.yml
@@ -0,0 +1,24 @@
1
+# Copyright (c) 2021 Vincent A. Cicirello
2
+# MIT License
3
+
4
+name: Update Major Release Tag
5
6
+on:
7
+ release:
8
+ types: [created]
9
10
+jobs:
11
+ movetag:
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
+ - uses: actions/checkout@v4
16
17
+ - name: Get major version num and update tag
18
+ run: |
19
+ VERSION=${GITHUB_REF#refs/tags/}
20
+ MAJOR=${VERSION%%.*}
21
+ git config --global user.name 'YOUR NAME HERE'
22
+ git config --global user.email '[email protected]'
23
+ git tag -fa "${MAJOR}" -m 'Update major version tag'
24
+ git push origin "${MAJOR}" --force
0 commit comments