mirror of
https://github.com/tmdinosaurcenter/kiosk-guestbook.git
synced 2026-06-04 01:28:46 -06:00
fix: add Bearer token authentication to ntfy notification
This commit is contained in:
@@ -34,9 +34,11 @@ jobs:
|
||||
if: github.event_name == 'push'
|
||||
env:
|
||||
NTFY_URL: ${{ secrets.NTFY_URL }}
|
||||
NTFY_TOKEN: ${{ secrets.NTFY_TOKEN }}
|
||||
run: |
|
||||
curl -v \
|
||||
curl -s -o /dev/null \
|
||||
-H "Title: kiosk-guestbook image pushed to Docker Hub" \
|
||||
-H "Tags: white_check_mark" \
|
||||
-H "Authorization: Bearer $NTFY_TOKEN" \
|
||||
-d "The kiosk-guestbook container has been pushed to Docker Hub and is ready to pull. Commit: ${{ github.sha }} — ${{ github.event.head_commit.message }}" \
|
||||
"$NTFY_URL"
|
||||
|
||||
Reference in New Issue
Block a user