fix: add Bearer token authentication to ntfy notification

This commit is contained in:
2026-03-09 23:47:01 -06:00
parent e733e7b092
commit c2b6c1b460
+3 -1
View File
@@ -34,9 +34,11 @@ jobs:
if: github.event_name == 'push' if: github.event_name == 'push'
env: env:
NTFY_URL: ${{ secrets.NTFY_URL }} NTFY_URL: ${{ secrets.NTFY_URL }}
NTFY_TOKEN: ${{ secrets.NTFY_TOKEN }}
run: | run: |
curl -v \ curl -s -o /dev/null \
-H "Title: kiosk-guestbook image pushed to Docker Hub" \ -H "Title: kiosk-guestbook image pushed to Docker Hub" \
-H "Tags: white_check_mark" \ -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 }}" \ -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" "$NTFY_URL"