Skip to content

Commit

Permalink
Fix discord ci notifications on multiline messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ffaen committed Feb 22, 2021
1 parent 7edee80 commit ec9120d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
env:
MAVEN_USERNAME: ${{ secrets.MVN_USER }}
MAVEN_PASSWORD: ${{ secrets.MVN_PASSWORD }}

- name: Post discord notification
run: |
commits="${{ join(github.event.commits.*.message, '\n - ') }}"
commits=`echo "${{ join(github.event.commits.*.message, '\n - ') }}" | tr '\n' ' '`
avatar_url=https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
bot_username="Build notification"
payload_json='{ "username": "'$bot_username'", "avatar_url": "'$avatar_url'", "content": "A new dev build of PVP arena is available! Download it by saving the attached file.", "embeds": [{"description": ":spiral_note_pad: **New commits:**\n\n - '$commits'"}] }'
Expand Down

0 comments on commit ec9120d

Please sign in to comment.