This commit is contained in:
@@ -69,11 +69,30 @@ jobs:
|
|||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
|
|
||||||
- name: Actions Ntfy
|
- name: ntfy Success
|
||||||
run: |
|
uses: niniyas/ntfy-action@master
|
||||||
curl \
|
if: success()
|
||||||
-H "Authorization: Bearer ${{ secrets.NTFY_CRED }}" \
|
with:
|
||||||
-H "Title: Site-Profile Image Released to Gitea: ${{ steps.meta.outputs.tags }}" \
|
url: '${{ secrets.NTFY_URL }}'
|
||||||
-H "Content-Type: text/plain" \
|
topic: ${{ secrets.NTFY_TOPIC }}'
|
||||||
-d 'Repo: ${{ gitea.repository }}\nCommit: ${{ gitea.sha }}\nRef: ${{ gitea.ref }}\nStatus: ${{ job.status}}' \
|
title: "Gitea Action"
|
||||||
${{ secrets.NTFY_URL }}
|
priority: 4
|
||||||
|
headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}'
|
||||||
|
tags: action,successfully,completed
|
||||||
|
details: 'Site Profile build workflow has successfully completed!'
|
||||||
|
icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png'
|
||||||
|
|
||||||
|
- name: ntfy Failed
|
||||||
|
uses: niniyas/ntfy-action@master
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
url: '${{ secrets.NTFY_URL }}'
|
||||||
|
topic: ${{ secrets.NTFY_TOPIC }}'
|
||||||
|
title: "Gitea Action"
|
||||||
|
priority: 5
|
||||||
|
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=release-image.yml", "clear": true}]'
|
||||||
|
image: true
|
||||||
|
Reference in New Issue
Block a user