Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 887ea14

Browse files
ci: fetch annotated tags during release/build-dylib (coder#15738)
The release action [ran into an issue](https://github.com/coder/coder/actions/runs/12147281426) building the dylib today, as the version script that's run during the build job was unable to find an annotated tag. This is a step it skips during dry-runs. ``` ERROR: version.sh: the current commit is not tagged with an annotated tag ``` This was almost certainly caused by omitting the `git fetch --tags --force` that's present on each other release action job, as the workflow passes on a release dry-run when run against a regular branch, that's not an annotated tag. From an existing comment: > If the event that triggered the build was an annotated tag (which our tags are supposed to be), actions/checkout has a bug where the tag in question is only a lightweight tag and not a full annotated tag.
1 parent c8c8e50 commit 887ea14

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ jobs:
4646
with:
4747
fetch-depth: 0
4848

49+
# If the event that triggered the build was an annotated tag (which our
50+
# tags are supposed to be), actions/checkout has a bug where the tag in
51+
# question is only a lightweight tag and not a full annotated tag. This
52+
# command seems to fix it.
53+
# https://github.com/actions/checkout/issues/290
54+
- name: Fetch git tags
55+
run: git fetch --tags --force
56+
4957
- name: Setup build tools
5058
run: |
5159
brew install bash gnu-getopt make

0 commit comments

Comments
 (0)