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
19 changes: 17 additions & 2 deletions .github/workflows/versioning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,28 @@ on:
release:
types: [published, edited]

permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
cancel-in-progress: true

jobs:
update-major-tag:
runs-on: ubuntu-latest

steps:
- uses: Actions-R-Us/actions-tagger@v2
- uses: actions/checkout@v7

- name: Update major version tag
env:
TAG: ${{ github.event.release.tag_name }}
run: |
MAJOR="${TAG%%.*}"
if [[ ! "$MAJOR" =~ ^v[0-9]+$ ]]; then
echo "Skipping tag '$TAG': no major version prefix found."
exit 0
fi
git tag --force "$MAJOR" "$GITHUB_SHA"
git push --force origin "$MAJOR"