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
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
notify:
|
notify:
|
||||||
name: Send request
|
name: Checkout and notify
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- name: Checkout repository
|
||||||
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
|
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
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user