Skip to content

Commit 3124fa9

Browse files
Merge branch 'develop'
2 parents 663c9b5 + 9f5e742 commit 3124fa9

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/nbgv_prepare_release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,15 @@ jobs:
9292
echo "tag=$(nbgv get-version -v GitTagName)" >> "$GITHUB_OUTPUT"
9393
echo "semver=$(nbgv get-version -v SemVer2)" >> "$GITHUB_OUTPUT"
9494
95-
# 8️⃣ Decide whether we have any tags yet 🆕
96-
- name: 🕵️ Detect previous tag
97-
id: tagcheck
95+
# 8️⃣ Create a throw-away bootstrap tag if this repo has none
96+
- name: 🏷️ Bootstrap first tag when repo is tag-less
9897
run: |
99-
if git tag --list | grep -q . ; then
100-
echo "commit_mode=false" >> "$GITHUB_OUTPUT"
101-
else
102-
echo "commit_mode=true" >> "$GITHUB_OUTPUT"
98+
if ! git tag --list | grep -q . ; then
99+
echo "No tags found – creating bootstrap tag 0.0.0"
100+
git tag 0.0.0 # lightweight tag on current HEAD
103101
fi
104102
103+
105104
# 9️⃣ Build & upload release-notes.md (uses commitMode flag)
106105
- name: 📝 Generate release notes
107106
id: changelog

0 commit comments

Comments
 (0)