ci: Include commit message in success/failure notification

This commit is contained in:
SebastianStork 2026-03-06 21:02:40 +01:00
parent 29e7613021
commit 00e37eb467
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -124,7 +124,7 @@ jobs:
-H "Tags: white_check_mark" \ -H "Tags: white_check_mark" \
-H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ -H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
-H "Markdown: yes" \ -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 https://ntfy.sh/splitleaf
- name: Notify failure - name: Notify failure
if: needs.await-deploy.result == 'failure' if: needs.await-deploy.result == 'failure'
@ -135,5 +135,5 @@ jobs:
-H "Tags: rotating_light" \ -H "Tags: rotating_light" \
-H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ -H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
-H "Markdown: yes" \ -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 https://ntfy.sh/splitleaf