Post commit messages to Slack with Github Actions

This commit is contained in:
Andris Reinman 2023-03-30 10:00:26 +03:00
parent d2fc28dbf0
commit 10faa5f4b9
No known key found for this signature in database
GPG key ID: DC6C83F4D584D364

View file

@ -20,7 +20,7 @@ jobs:
env:
webhook_url: ${{ secrets.ZONE_WEBHOOK_URL }}
curl_options: '--fail -s'
data: '{"channel":"wildduck-changelog", "text": "*${{ github.actor }}* pushed <https://github.com/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}> to *${{ github.ref_name }}*: ${{ github.event.head_commit.message }}"}'
data: '{"channel":"wildduck-changelog", "text": "*${{ github.actor }}* pushed <https://github.com/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}> to *${{ github.ref_name }}*\\n ${{ github.event.head_commit.message }}"}'
run: |
curl $curl_options \
-H "Content-Type: application/json" \