Skip to content

Commit d2aac8d

Browse files
mnriemCopilot
andauthored
Update .github/workflows/release.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e435ab8 commit d2aac8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ jobs:
4545
chmod +x .github/workflows/scripts/generate-release-notes.sh
4646
# Get the previous tag for changelog generation
4747
PREVIOUS_TAG=$(git describe --tags --abbrev=0 ${{ steps.version.outputs.tag }}^ 2>/dev/null || echo "")
48+
# Default to v0.0.0 if no previous tag is found (e.g., first release)
49+
if [ -z "$PREVIOUS_TAG" ]; then
50+
PREVIOUS_TAG="v0.0.0"
51+
fi
4852
.github/workflows/scripts/generate-release-notes.sh ${{ steps.version.outputs.tag }} "$PREVIOUS_TAG"
4953
5054
- name: Create GitHub Release

0 commit comments

Comments
 (0)