Skip to content

v3.0.3

v3.0.3 #6

Workflow file for this run

name: Shared Tags
run-name: ${{ github.ref_name }}
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
name: Update shared tags
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Update tags
shell: bash
run: |
MAJOR=$(cut -d '.' -f 1 <<< "$GITHUB_REF_NAME")
MINOR=$(cut -d '.' -f 2 <<< "$GITHUB_REF_NAME")
cat <<EOF
VERSION=$GITHUB_REF_NAME
MAJOR=$MAJOR
MINOR=$MINOR
EOF
git tag -f "$MAJOR.$MINOR" "$GITHUB_SHA"
git tag -f "$MAJOR" "$GITHUB_SHA"
git push -u origin -f "$MAJOR.$MINOR"
git push -u origin -f "$MAJOR"
git show-ref --tags | grep "$GITHUB_SHA"