We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd98116 + a95fd34 commit 3dba33dCopy full SHA for 3dba33d
1 file changed
.github/workflows/release.yml
@@ -24,6 +24,15 @@ jobs:
24
with:
25
github_token: ${{ secrets.GITHUB_TOKEN }}
26
custom_tag: ${{ steps.variables.outputs.TAG_NAME }}
27
+
28
+ - name: Update major version tag
29
+ run: |
30
+ VERSION=${{ steps.variables.outputs.TAG_NAME }}
31
+ MAJOR=${VERSION%%.*}
32
+ git config --global user.name 'GitHub Actions'
33
+ git config --global user.email 'action@github.com'
34
+ git tag -fa "${MAJOR}" -m 'Update major version tag with $VERSION'
35
+ git push origin "${MAJOR}" --force
36
37
- name: Create a GitHub release
38
uses: ncipollo/release-action@main
0 commit comments