From dac92a402b460c08b95ab0eabcc138924f9983db Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Mon, 13 May 2024 16:28:28 +1200 Subject: [PATCH] chore: Add ntfy tasks [skip ci] --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e9d11c..e5035a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ on: tags: - "!**" schedule: - - cron: "21 * * * *" + - cron: "21 4 * * 0" jobs: lint: @@ -83,3 +83,27 @@ jobs: env: GITEA_TOKEN: ${{ secrets.G_TOKEN }} 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' \ No newline at end of file