Skip to content

Commit 2186bc4

Browse files
committed
fix(release): explicit tag fetching
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent 0cb7f5c commit 2186bc4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ jobs:
144144
ROOT_MODULE: ${{ steps.detect-monorepo.outputs.root-module }}
145145
run: |
146146
set -euo pipefail
147+
set -x
148+
147149
LOCAL_TEMPLATE_LOCATION="${RUNNER_TEMP:-/tmp}/.cliff-monorepo.toml"
150+
git fetch --depth=1 origin +refs/tags/*:refs/tags/* # fetch tags explicitly
148151
149152
root_dir="$(git rev-parse --show-toplevel)"
150153
cd "${root_dir}"
@@ -206,7 +209,7 @@ jobs:
206209
# Generate module-specific notes (Part 2)
207210
for (( i=0; i<${#ALL_RELATIVE_MODULES[@]}; i++ )); do
208211
relative_module="${ALL_RELATIVE_MODULES[$i]}"
209-
relative_module=$(echo ${relative_module#"github.com/${GITHUB_REPO}/"}|sed -E 's/\/v[0-9]+$//') # in some case, the module is not prefixed by the root module, e.g. "v2" modules.
212+
relative_module=$(echo ${relative_module#"github.com/${GITHUB_REPO}/"}|sed -E 's/\/v[0-9]+$//') # in some case, the module is not prefixed by the root module, e.g. "v2" modules.
210213
folder="${ALL_FOLDERS[$i]}"
211214
212215
# Build exclusion list for child modules
@@ -279,6 +282,9 @@ jobs:
279282
echo 'EOF'
280283
} >> "${GITHUB_OUTPUT}"
281284
285+
# Log notes
286+
cat "${tmp_dir}/final-notes.md"
287+
282288
# Cleanup
283289
rm -rf "${tmp_dir}"
284290

0 commit comments

Comments
 (0)