AGSTATUS/.github/workflows/NTFY.yml

27 lines
848 B
YAML

name: NTFY Manual Ping
run-name: ${{ github.actor }} has submitted a page build.
on: [page_build]
jobs:
NTFY-Manual-Ping:
runs-on: ubuntu-latest
# needs: pages-build-deployment
steps:
- run: echo "This job was automatically triggered by a ${{ github.event_name }} event."
- name: Ping NTFY server with update message.
run: |
curl ntfy.sh \
-d '{
"topic": "Hgh543VzdawHYbZw",
"message": "A status update has been posted.",
"actions": [
{
"action": "http",
"label": "Visit Site",
"url": "https://status.astragroup.info/",
"method": "GET"
"body": "{\"action\": \"close\"}"
}
]
}'
- run: echo "Job status is ${{ job.status }}"