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