Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit e7ede07

Browse files
committed
fix(ci): better version tagging
1 parent d9f3227 commit e7ede07

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release-branch.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
11-
- env:
12-
tag: ${{github.ref}}
11+
- id: tag-version
12+
uses: battila7/get-version-action@v2
13+
- name: publish major version tag
1314
run: |
14-
tag=${tag#refs/tags/}
15-
major=${tag%%.*}
16-
git push origin HEAD:refs/heads/$major
15+
git push origin HEAD:refs/heads/${{ steps.tag-version.outputs.major }}

0 commit comments

Comments
 (0)