v12.1.0 #18
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: CI Release Tag | |
on: | |
release: | |
types: [created] | |
jobs: | |
tag: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Fetch major version tag and update it | |
shell: bash | |
run: | | |
VERSION=${GITHUB_REF#refs/tags/} | |
MAJOR=${VERSION%%.*} | |
git config --global user.name 'Rishav Dhar' | |
git config --global user.email '[email protected]' | |
git tag -fa "${MAJOR}" -m 'Update major version tag' | |
git push origin "${MAJOR}" --force |