Skip to content

Commit

Permalink
refactor change note format
Browse files Browse the repository at this point in the history
  • Loading branch information
Guri999 committed Jan 30, 2025
1 parent 114d6ec commit a5f6984
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ jobs:
id: generate_notes
run: |
if [[ "${{ env.LATEST_TAG }}" == "0.0.0" ]]; then
COMMIT_LOG=$(git log --pretty=format:"- [\`%h\`](https://github.com/$GITHUB_REPOSITORY/commit/%H) %s" --reverse)
COMMIT_LOG=$(git log --pretty=format:"- #%h %s" --reverse)
else
COMMIT_LOG=$(git log ${{ env.LATEST_TAG }}..HEAD --pretty=format:"- [\`%h\`](https://github.com/$GITHUB_REPOSITORY/commit/%H) %s" --reverse)
COMMIT_LOG=$(git log ${{ env.LATEST_TAG }}..HEAD --pretty=format:"- #%h %s" --reverse)
fi
NOTES=$(cat << EOF
$COMMIT_LOG
EOF
)
echo "$NOTES" > notes.md
cat notes.md
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-jira.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: update jira ticket
on:
workflow_run:
workflows:
- release
- "release"
types:
- completed
conclusion: success
Expand Down

0 comments on commit a5f6984

Please sign in to comment.