File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments