Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update the v1 branch when a release is published
name: Update major version branch on release
on:
release:
types: [published]
Expand All @@ -13,4 +13,8 @@ jobs:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- run: git push origin HEAD:v1
- name: Update major version branch
run: |
tag=${{ github.event.release.tag_name }}
branch=${tag%%.*}
git push origin HEAD:$branch
Loading