From 5a62d0f571e100e3a0677b13dbb8425ff8d9d4a8 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 10 Nov 2025 22:49:02 -0600 Subject: [PATCH] add ntfy to build --- .gitea/workflows/release-image.yml | 8 ++++---- .gitea/workflows/test-build.yaml | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/release-image.yml b/.gitea/workflows/release-image.yml index d2af1c9..6d6fd94 100644 --- a/.gitea/workflows/release-image.yml +++ b/.gitea/workflows/release-image.yml @@ -76,10 +76,10 @@ jobs: url: '${{ secrets.NTFY_URL }}' topic: '${{ secrets.NTFY_TOPIC }}' title: 'Gitea Action' - priority: 3 + priority: 4 headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}' tags: action,successfully,completed - details: 'Site Profile build workflow has successfully completed!' + details: 'Site Profile release workflow has successfully completed!' icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png' - name: ntfy Failed @@ -89,10 +89,10 @@ jobs: url: '${{ secrets.NTFY_URL }}' topic: '${{ secrets.NTFY_TOPIC }}' title: 'Gitea Action' - priority: 4 + priority: 5 headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}' tags: action,failed - details: 'Site Profile build workflow has failed!' + details: 'Site Profile release workflow has failed!' icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png' actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/actions?workflow=release-image.yml", "clear": true}]' image: true diff --git a/.gitea/workflows/test-build.yaml b/.gitea/workflows/test-build.yaml index fa37764..f9f4095 100644 --- a/.gitea/workflows/test-build.yaml +++ b/.gitea/workflows/test-build.yaml @@ -35,3 +35,18 @@ jobs: - name: Build Project run: pnpm build + + - name: ntfy Failed + uses: niniyas/ntfy-action@master + if: failure() + with: + url: '${{ secrets.NTFY_URL }}' + topic: '${{ secrets.NTFY_TOPIC }}' + title: 'Gitea Action' + priority: 4 + headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}' + tags: action,failed + details: 'Site Profile build workflow has failed!' + icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png' + actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/actions?workflow=test-build.yaml", "clear": true}]' + image: true