Skip to content

Commit

Permalink
feat(github-actions): enhance script to handle initial release tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
godcong committed Jul 10, 2024
1 parent 08c97bc commit 4457313
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tag_after_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ jobs:
LATEST_RELEASE=${{ steps.get_latest_release.outputs.LATEST_RELEASE }}
if [[ -n "$LATEST_RELEASE" ]]; then
# If there's no previous release, get only the current commit's log
CHANGELOG=$(git show --pretty=format:"* %s (%an, %ar)")
CHANGELOG=$(git log --pretty=format:"* %s (%an, %ar)")
echo "CHANGELOG=$CHANGELOG" >> $GITHUB_OUTPUT
else
# Get all submission information since the last release
CHANGELOG=$(git log "$LATEST_RELEASE"..HEAD --pretty=format:"* %s (%an, %ar)")
echo "CHANGELOG=$CHANGELOG" >> $GITHUB_OUTPUT
fi
echo "CHANGELOG=$CHANGELOG" >> $GITHUB_OUTPUT
- name: Create release
if: ${{ steps.determine_next_version.outputs.NEXT_TAG }}
Expand Down

0 comments on commit 4457313

Please sign in to comment.