Skip to content

v11 Pass Command Arguments with more PR Automation #3

v11 Pass Command Arguments with more PR Automation

v11 Pass Command Arguments with more PR Automation #3

Workflow file for this run

---
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