Skip to content

Commit

Permalink
add support for multi line changelog messages
Browse files Browse the repository at this point in the history
  • Loading branch information
way2muchnoise committed Apr 1, 2024
1 parent 04a5a31 commit b151a44
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ jobs:
runs-on: ubuntu-latest

steps:
# Setup
# Setup
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create changelog
run: echo "CHANGELOG=$(git log ${{ github.event.before }}...${{ github.event.after }} --pretty=format:"\[[%h](https://github.com/$GITHUB_REPOSITORY/commit/%H)\] %s (%cn) ")" >> "$GITHUB_ENV"
run: |
{
echo 'CHANGELOG<<EOF'
git log ${{ github.event.before }}...${{ github.event.after }} --pretty=format:"\[[%h](https://github.com/$GITHUB_REPOSITORY/commit/%H)\] %s (%cn) "
echo ""
echo EOF
} >> "$GITHUB_ENV"
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
Expand Down

0 comments on commit b151a44

Please sign in to comment.