Skip to content

v1.2.78

v1.2.78 #96

name: Update Major Tag
on:
workflow_dispatch:
release:
types: [published]
permissions:
contents: write
jobs:
set-tag:
if: github.repository_owner == 'jkroepke'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: 'false'
- name: Push major tag
#language=bash
run: |
TAG="${GITHUB_REF_NAME}"
if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
TAG="${TAG%%.*}"
git tag -f "${TAG}"
git push --tags --force
fi