mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 15:29:07 +01:00
ci: Include commit message in success/failure notification
This commit is contained in:
parent
29e7613021
commit
00e37eb467
1 changed files with 2 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -124,7 +124,7 @@ jobs:
|
|||
-H "Tags: white_check_mark" \
|
||||
-H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
||||
-H "Markdown: yes" \
|
||||
-d "Commit \`${GITHUB_SHA::7}\` deployed successfully." \
|
||||
-d $'Commit `'"${GITHUB_SHA::7}"$'` deployed successfully.\n\n> ${{ github.event.head_commit.message }}' \
|
||||
https://ntfy.sh/splitleaf
|
||||
- name: Notify failure
|
||||
if: needs.await-deploy.result == 'failure'
|
||||
|
|
@ -135,5 +135,5 @@ jobs:
|
|||
-H "Tags: rotating_light" \
|
||||
-H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
||||
-H "Markdown: yes" \
|
||||
-d "Commit \`${GITHUB_SHA::7}\` failed to deploy." \
|
||||
-d $'Commit `'"${GITHUB_SHA::7}"$'` failed to deploy.\n\n> ${{ github.event.head_commit.message }}' \
|
||||
https://ntfy.sh/splitleaf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue