escape special chars in commit messages via pipe
This commit is contained in:
10
.github/workflows/notify-irc.yaml
vendored
10
.github/workflows/notify-irc.yaml
vendored
@@ -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) %s" | curl "${{ secrets.IRC_NOTIFY_URL }}" -F target=#gonic -F message=@- >/dev/null 2>&1
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user