Skip to content

Commit 5abf307

Browse files
authored
fix: do full checkout in release workflow (#11)
1 parent b558430 commit 5abf307

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/enterprise-release.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ jobs:
3131
DOCKER_CLI_EXPERIMENTAL: "enabled"
3232
steps:
3333
- uses: actions/checkout@v3
34+
with:
35+
fetch-depth: 0
36+
37+
# If the event that triggered the build was an annotated tag (which our
38+
# tags are supposed to be), actions/checkout has a bug where the tag in
39+
# question is only a lightweight tag and not a full annotated tag. This
40+
# command seems to fix it.
41+
# https://github.com/actions/checkout/issues/290
42+
- name: Fetch git tags
43+
run: git fetch --tags --force
3444

3545
- name: Docker Login
3646
uses: docker/login-action@v2

0 commit comments

Comments
 (0)