Change authentication to header-based

This commit is contained in:
Niko Diamadis
2024-11-05 09:58:46 -05:00
committed by GitHub
parent ca0339b85e
commit 36b9f344d9
+2 -1
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env sh
curl "$INPUT_GOTIFY_API_BASE/message?token=$INPUT_GOTIFY_APP_TOKEN" \
curl "$INPUT_GOTIFY_API_BASE/message" \
-H "X-Gotify-Key: $INPUT_GOTIFY_APP_TOKEN" \
-F "title=$INPUT_NOTIFICATION_TITLE" \
-F "message=$INPUT_NOTIFICATION_MESSAGE" \
-F "priority=$INPUT_NOTIFICATION_PRIORITY"