Skip to content

v13.7.3

v13.7.3 #14

Workflow file for this run

---
name: Tag Release
on:
release:
types: [created]
jobs:
tag:
runs-on: ubuntu-24.04
permissions:
contents: write # Required for tag operation.
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # Fetch tag history.
persist-credentials: false
- name: Tag release version
env:
GH_TOKEN: ${{ github.token }}
GH_TAG: ${{ github.event.release.tag_name}}
run: |
version=${GH_TAG%%.*}
gh api /repos/${{ github.repository }}/git/refs/tags/${version} --method PATCH --silent --field sha="${GITHUB_SHA}" --field force=true || \
gh api /repos/${{ github.repository }}/git/refs --method POST --silent --field sha="${GITHUB_SHA}" --field ref="refs/tags/${version}"