From 69f0249705f3c88f91d4545e13b54bb32b289cf9 Mon Sep 17 00:00:00 2001 From: Santiago Date: Mon, 28 Sep 2026 07:56:20 -0300 Subject: [PATCH] ci(release): restore annotated tag before validation actions/checkout@v4 fetches the pushed tag as +:refs/tags/, replacing the annotated tag with a lightweight ref, so the annotated-tag check rejected every real release tag. Force-fetch the tag object by name before validating it. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb5b3dd..09ccf63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,10 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false + # actions/checkout rewrites the pushed tag as a lightweight ref to the + # commit; restore the annotated tag object before validating it. + - name: Restore annotated release tag + run: git fetch --force --no-tags origin "+refs/tags/${GITHUB_REF_NAME}:refs/tags/${GITHUB_REF_NAME}" - uses: actions/setup-java@v4 with: distribution: temurin