Skip to content

Commit 878f63c

Browse files
committed
fix(release): checkout with tags
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent 2186bc4 commit 878f63c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5353
with:
5454
fetch-depth: 0
55+
ref: ${{ inputs.tag }}
56+
fetch-tags: true
5557
-
5658
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
5759
with:
@@ -62,7 +64,7 @@ jobs:
6264
-
6365
name: Extract tag message
6466
id: get-message
65-
# tag message is not retrieved unless we fetch the ref explictly
67+
# tag message is not retrieved unless we fetch the ref explicitly
6668
run: |
6769
set -x
6870
@@ -147,7 +149,6 @@ jobs:
147149
set -x
148150
149151
LOCAL_TEMPLATE_LOCATION="${RUNNER_TEMP:-/tmp}/.cliff-monorepo.toml"
150-
git fetch --depth=1 origin +refs/tags/*:refs/tags/* # fetch tags explicitly
151152
152153
root_dir="$(git rev-parse --show-toplevel)"
153154
cd "${root_dir}"

0 commit comments

Comments
 (0)