Merge pull request #2 from cyb3rko/header-authentication

Header-based authentication
This commit is contained in:
eikendev
2024-11-09 23:49:37 +01:00
committed by GitHub
+2 -1
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env sh #!/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 "title=$INPUT_NOTIFICATION_TITLE" \
-F "message=$INPUT_NOTIFICATION_MESSAGE" \ -F "message=$INPUT_NOTIFICATION_MESSAGE" \
-F "priority=$INPUT_NOTIFICATION_PRIORITY" -F "priority=$INPUT_NOTIFICATION_PRIORITY"