Skip to content

Commit 4068241

Browse files
committed
fix: add major minor git tags as well
1 parent dcaa7c7 commit 4068241

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ jobs:
4242
env:
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4444

45+
- name: Push updates to branch for major version
46+
if: steps.semantic.outputs.new_release_published == 'true'
47+
run: |
48+
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}
49+
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}.${{steps.semantic.outputs.new_release_minor_version}}
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
4553
docker:
4654
runs-on: ubuntu-latest
4755

0 commit comments

Comments
 (0)