We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fae340 commit a8b6596Copy full SHA for a8b6596
.github/workflows/move-major-release-tag.yaml
@@ -0,0 +1,21 @@
1
+name: Move Major Release Tag
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
7
+jobs:
8
+ move-major-tag:
9
+ runs-on: ubuntu-latest
10
11
+ steps:
12
+ - uses: actions/checkout@v4
13
14
+ - name: Get major version number and update tag
15
+ run: |
16
+ VERSION=${GITHUB_REF#refs/tags/}
17
+ MAJOR=${VERSION%%.*}
18
+ git config --global user.name "${GITHUB_ACTOR}"
19
+ git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
20
+ git tag -fa ${MAJOR} -m "Update major version tag"
21
+ git push origin ${MAJOR} --force
0 commit comments