Skip to content

Commit

Permalink
fix(ci): better version tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
paambaati committed Oct 14, 2022
1 parent d9f3227 commit e7ede07
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- env:
tag: ${{github.ref}}
- id: tag-version
uses: battila7/get-version-action@v2
- name: publish major version tag
run: |
tag=${tag#refs/tags/}
major=${tag%%.*}
git push origin HEAD:refs/heads/$major
git push origin HEAD:refs/heads/${{ steps.tag-version.outputs.major }}

0 comments on commit e7ede07

Please sign in to comment.