Skip to content

Commit

Permalink
escape special chars in commit messages via pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Sep 25, 2023
1 parent c93852f commit 2e332a4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/notify-irc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ on:
- master
jobs:
notify:
name: Send request
name: Checkout and notify
runs-on: ubuntu-latest
steps:
- run: |
curl "${{ secrets.IRC_NOTIFY_URL }}" -F target=#gonic -F 'message=push to master (@${{ github.event.head_commit.author.username }}) ${{ github.event.head_commit.message }}' >/dev/null 2>&1
- name: Checkout repository
uses: actions/checkout@v3
- name: Notify
run: |
set +x e
git log -1 --pretty="push to master (@%an) %B" | head -n 1 | curl "${{ secrets.IRC_NOTIFY_URL }}" -F target=#gonic -F message=@- >/dev/null 2>&1
exit 0

0 comments on commit 2e332a4

Please sign in to comment.