diff --git a/.github/workflows/move-major-minor-tags.yml b/.github/workflows/move-major-minor-tags.yml deleted file mode 100644 index 63e4443f..00000000 --- a/.github/workflows/move-major-minor-tags.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Move major/minor tags on release - -on: - push: - tags: - - 'v*.*.*' - -jobs: - move-tags: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - with: - fetch-depth: 0 - - - name: Move vX and vX.Y tags - run: | - TAG="${GITHUB_REF#refs/tags/}" - TARGET="$(git rev-parse "${TAG}^{}")" - MAJOR="${TAG%%.*}" - MINOR="${TAG%.*}" - echo "Full tag : $TAG" - echo "Target : $TARGET" - echo "Major tag: $MAJOR" - echo "Minor tag: $MINOR" - # Only move major/minor tags for annotated tags (not lightweight) - if [ "$(git cat-file -t "${TAG}")" != "tag" ]; then - echo "Skipping: '${TAG}' is a lightweight tag, not an annotated tag." - exit 0 - fi - git tag -f "$MAJOR" "$TARGET" - git tag -f "$MINOR" "$TARGET" - git push origin -f "$MAJOR" "$MINOR"