Skip to content

Commit

Permalink
fix handle release process with no tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed Jun 22, 2024
1 parent 3de8f94 commit 7c10bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
id: get_commit_messages
run: |
# Get the previous tag
PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD^)
PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD^ || echo "HEAD")
# If there is no previous tag, get only the latest commit message
if [[ -z "$PREVIOUS_TAG" ]]; then
COMMITS=$(git log -1 --pretty=format:'- %s (%h)')
Expand Down

0 comments on commit 7c10bc3

Please sign in to comment.