From 7fdbe7cf0c8ef50cfd0878eed7b5180abc6b53c7 Mon Sep 17 00:00:00 2001 From: Kevin Stillhammer Date: Sat, 28 Mar 2026 16:29:52 +0100 Subject: [PATCH] Remove update-major-minor-tags workflow (#826) --- .github/workflows/update-major-minor-tags.yml | 51 ------------------- 1 file changed, 51 deletions(-) delete mode 100644 .github/workflows/update-major-minor-tags.yml diff --git a/.github/workflows/update-major-minor-tags.yml b/.github/workflows/update-major-minor-tags.yml deleted file mode 100644 index 4107fb1..0000000 --- a/.github/workflows/update-major-minor-tags.yml +++ /dev/null @@ -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}"