mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-03-29 01:49:53 +00:00
Remove update-major-minor-tags workflow (#826)
This commit is contained in:
committed by
GitHub
parent
485abd05e5
commit
7fdbe7cf0c
51
.github/workflows/update-major-minor-tags.yml
vendored
51
.github/workflows/update-major-minor-tags.yml
vendored
@@ -1,51 +0,0 @@
|
|||||||
---
|
|
||||||
name: Update Major Minor Tags
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches-ignore:
|
|
||||||
- "**"
|
|
||||||
tags:
|
|
||||||
- "v*.*.*"
|
|
||||||
|
|
||||||
permissions: {}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update_major_minor_tags:
|
|
||||||
name: Make sure major and minor tags are up to date on a patch release
|
|
||||||
runs-on: ubuntu-24.04-arm
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
||||||
with:
|
|
||||||
persist-credentials: true # needed for git push below
|
|
||||||
- name: Update Major Minor Tags
|
|
||||||
run: |
|
|
||||||
set -x
|
|
||||||
|
|
||||||
cd "${GITHUB_WORKSPACE}" || exit
|
|
||||||
|
|
||||||
# Set up variables.
|
|
||||||
TAG="${GITHUB_REF#refs/tags/}" # v1.2.3
|
|
||||||
MINOR="${TAG%.*}" # v1.2
|
|
||||||
MAJOR="${MINOR%.*}" # v1
|
|
||||||
|
|
||||||
if [ "${GITHUB_REF}" = "${TAG}" ]; then
|
|
||||||
echo "This workflow is not triggered by tag push: GITHUB_REF=${GITHUB_REF}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
MESSAGE="Release ${TAG}"
|
|
||||||
|
|
||||||
# Set up Git.
|
|
||||||
git config user.name "${GITHUB_ACTOR}"
|
|
||||||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
|
||||||
|
|
||||||
# Update MAJOR/MINOR tag
|
|
||||||
git tag -fa "${MAJOR}" -m "${MESSAGE}"
|
|
||||||
git tag -fa "${MINOR}" -m "${MESSAGE}"
|
|
||||||
|
|
||||||
# Push
|
|
||||||
git push --force origin "${MINOR}"
|
|
||||||
git push --force origin "${MAJOR}"
|
|
||||||
Reference in New Issue
Block a user