From a942dc3d2e85db3c90487a7a6c8d89747d59d248 Mon Sep 17 00:00:00 2001 From: turtton Date: Wed, 6 May 2026 20:14:56 +0900 Subject: [PATCH] fix: Explicitly fetch tag object after checkout actions/checkout v5 does not fetch annotated tag objects on tag-push triggers even with fetch-tags: true. Use explicit git fetch origin tag to retrieve the tag object. --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bce1221..4dccd24 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,10 @@ jobs: with: persist-credentials: false fetch-depth: 0 - fetch-tags: true + - name: Fetch tag object + run: git fetch origin tag "$GITHUB_REF_NAME" --force + env: + GITHUB_REF_NAME: ${{ github.ref_name }} - name: Validate tag env: GITHUB_REF_NAME: ${{ github.ref_name }}