Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit887ea14

Browse files
ci: fetch annotated tags during release/build-dylib (#15738)
The release action [ran into anissue](https://github.com/coder/coder/actions/runs/12147281426) buildingthe dylib today, as the version script that's run during the build jobwas unable to find an annotated tag. This is a step it skips duringdry-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 theworkflow 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 ourtags 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 parentc8c8e50 commit887ea14

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎.github/workflows/release.yaml

Lines changed: 8 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp