v1.0.5 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Major Release Tag | |
on: | |
release: | |
types: [created] | |
jobs: | |
movetag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get major version num and update tag | |
run: | | |
VERSION="${GITHUB_REF#refs/tags/}" | |
MAJOR="${VERSION%%.*}" | |
# https://github.com/actions/checkout/pull/1184 | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git tag -fa "${MAJOR}" -m "Floating tag for major version ${MAJOR}" | |
git push origin "${MAJOR}" --force |