Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cbusillo committed Jun 10, 2024
1 parent af2c305 commit 05c292a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/briefcase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- name: Get commit messages
id: get_commit_messages
run: |
LAST_TAG=$(git describe --tags --abbrev=0)
echo "Last release tag: $LAST_TAG"
MESSAGES=$(git log --pretty=format:"- [%h](https://github.com/${{ github.repository }}/commit/%H) %s" $LAST_TAG..HEAD)
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || git rev-list --max-parents=0 HEAD)
echo "Last release tag or initial commit: $LAST_TAG"
MESSAGES=$(git log --no-merges --pretty=format:"- [%h](https://github.com/test/commit/%H) %s" "$LAST_TAG"..HEAD | awk '!seen[$0]++')
MESSAGES="${MESSAGES//$'\n'/'%0A'}"
echo "MESSAGES=$MESSAGES" >> $GITHUB_OUTPUT
echo "Commit messages since last release:"
echo "MESSAGES=$MESSAGES" >> "$GITHUB_OUTPUT"
echo "Commit messages since last release or initial commit:"
echo "$MESSAGES"
- name: Set up Python
uses: actions/setup-python@v5
Expand Down

0 comments on commit 05c292a

Please sign in to comment.