AGSTATUS/.github/workflows/NTFY.yml

25 lines
765 B
YAML
Raw Normal View History

2023-10-27 19:26:46 -06:00
name: NTFY Manual Ping
run-name: ${{ github.actor }} has submitted a page build.
on: [page_build]
jobs:
NTFY-Manual-Ping:
runs-on: ubuntu-latest
2023-10-27 19:29:05 -06:00
# needs: pages-build-deployment
2023-10-27 19:26:46 -06:00
steps:
- run: echo "This job was automatically triggered by a ${{ github.event_name }} event."
- name: Ping NTFY server with update message.
run: |
2023-10-27 19:31:16 -06:00
curl ntfy.sh \
2023-10-27 19:26:46 -06:00
-d '{
"topic": "Hgh543VzdawHYbZw",
"message": "A status update has been posted.",
"actions": [
{
2023-10-27 19:38:50 -06:00
"action": "view",
2023-10-27 19:26:46 -06:00
"label": "Visit Site",
2023-10-27 19:38:50 -06:00
"url": "https://status.astragroup.info/"
2023-10-27 19:26:46 -06:00
}
]
}'
- run: echo "Job status is ${{ job.status }}"