chore: Add ntfy tasks [skip ci]

This commit is contained in:
2024-05-13 16:28:28 +12:00
parent b08e31ba85
commit dac92a402b

View File

@@ -6,7 +6,7 @@ on:
tags: tags:
- "!**" - "!**"
schedule: schedule:
- cron: "21 * * * *" - cron: "21 4 * * 0"
jobs: jobs:
lint: lint:
@@ -83,3 +83,27 @@ jobs:
env: env:
GITEA_TOKEN: ${{ secrets.G_TOKEN }} GITEA_TOKEN: ${{ secrets.G_TOKEN }}
GITEA_HOST: ${{ secrets.G_SERVER_URL}} GITEA_HOST: ${{ secrets.G_SERVER_URL}}
- name: ntfy-success-notifications
uses: niniyas/ntfy-action@master
if: success()
with:
url: '${{ vars.NTFY_URL }}'
title: Workflow success
topic: 'ci-status'
priority: 4
tags: +1,partying_face,action,successfully,completed
details: Workflow has been successfully completed!
icon: 'https://styles.redditmedia.com/t5_32uhe/styles/communityIcon_xnt6chtnr2j21.png'
image: true
- name: ntfy-failed-notifications
uses: niniyas/ntfy-action@master
if: failure()
with:
url: '${{ vars.NTFY_URL }}'
title: Workflow failed
topic: 'ci-status'
priority: 5
tags: -1,skull,action,failed
details: Workflow has failed!
actions: 'default'