v11 Pass Command Arguments with more PR Automation #3
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- 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 |