Skip to content

Commit 489f267

Browse files
fix: checkout
1 parent 0834a62 commit 489f267

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,20 @@ jobs:
4747
# Required for GitHub Actions attestation
4848
attestations: write
4949

50-
steps:
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+
with:
54+
fetch-depth: 0
55+
56+
# If the event that triggered the build was an annotated tag (which our
57+
# tags are supposed to be), actions/checkout has a bug where the tag in
58+
# question is only a lightweight tag and not a full annotated tag. This
59+
# command seems to fix it.
60+
# https://github.com/actions/checkout/issues/290
61+
- name: Fetch git tags
62+
run: git fetch --tags --force
63+
5164
- name: Authenticate to Google Cloud
5265
id: gcloud_auth
5366
uses: google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10

0 commit comments

Comments
 (0)