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.
2 parents 1625680 + 12431cc commit c159a4bCopy full SHA for c159a4b
.github/workflows/release.yml
@@ -1,4 +1,4 @@
1
-name: Update the v1 branch when a release is published
+name: Update major version branch on release
2
on:
3
release:
4
types: [published]
@@ -13,4 +13,8 @@ jobs:
13
- uses: actions/checkout@v5
14
with:
15
fetch-depth: 0
16
- - run: git push origin HEAD:v1
+ - name: Update major version branch
17
+ run: |
18
+ tag=${{ github.event.release.tag_name }}
19
+ branch=${tag%%.*}
20
+ git push origin HEAD:$branch
0 commit comments