added ntfy trigger cancelled and failure
This commit is contained in:
parent
017ad09ab9
commit
7aa1d462b3
1 changed files with 27 additions and 0 deletions
|
@ -31,6 +31,7 @@ jobs:
|
|||
uses: https://github.com/niniyas/ntfy-action@master
|
||||
if: success()
|
||||
with:
|
||||
title: 'Forgejo Actions"
|
||||
url: '${{ secrets.NTFY_URL }}'
|
||||
topic: '${{ secrets.NTFY_TOPIC }}'
|
||||
priority: 4
|
||||
|
@ -40,4 +41,30 @@ jobs:
|
|||
icon: 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/05/Forgejo_logo.svg/512px-Forgejo_logo.svg.png'
|
||||
image: true
|
||||
|
||||
- name: ntfy-failed-notifications
|
||||
uses: https://github.com/niniyas/ntfy-action@master
|
||||
if: failure()
|
||||
with:
|
||||
title: 'Forgejo Actions'
|
||||
url: '${{ secrets.NTFY_URL }}'
|
||||
topic: '${{ secrets.NTFY_TOPIC }}'
|
||||
priority: 5
|
||||
headers: '${{ secrets.NTFY_HEADERS }}'
|
||||
tags: +1,partying_face,action,failed
|
||||
details: Workflow has failed!
|
||||
actions: 'default'
|
||||
|
||||
- name: ntfy-cancelled-notifications
|
||||
uses: https://github.com/niniyas/ntfy-action@master
|
||||
if: cancelled()
|
||||
with:
|
||||
title: 'Forgejo Actions'
|
||||
url: '${{ secrets.NTFY_URL }}'
|
||||
topic: '${{ secrets.NTFY_TOPIC }}'
|
||||
priority: 3
|
||||
headers: '${{ secrets.NTFY_HEADERS }}'
|
||||
tags: +1,partying_face,action,cancelled
|
||||
details: Workflow has been cancelled!
|
||||
actions: '[{"action": "view", "label": "Open portal", "url": "https://techstack.preview.hadan.de/", "clear": true}]'
|
||||
|
||||
- run: echo "This job's status is ${{ job.status }}."
|
||||
|
|
Loading…
Add table
Reference in a new issue