Merge pull request 'fix: updated script with a shebang' (#3) from fix/notify-shebang into master
Deploy / deploy (push) Successful in 9s

Reviewed-on: https://git.ab-hl.duckdns.org/alexey.bagno/pwa-homelab-mon/pulls/3
This commit was merged in pull request #3.
This commit is contained in:
2026-09-02 15:18:28 +00:00
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
BODY="{'text':$1}" BODY="$(printf '%s' "$1" | jq -Rs '{text: .}')"
SIG=$(printf %s "$BODY" | openssl dgst -sha256 -hmac "a28b01dd9125753dc41945e4859b4e1007fa35305173451a" | awk '{print $2}') SIG=$(printf %s "$BODY" | openssl dgst -sha256 -hmac "a28b01dd9125753dc41945e4859b4e1007fa35305173451a" | awk '{print $2}')
curl -s -X POST http://127.0.0.1:8644/webhooks/gitea-deploy -H "Content-Type: application/json" -H "X-Hub-Signature-256: sha256=$SIG" -d "$BODY" curl -s -X POST http://127.0.0.1:8644/webhooks/gitea-deploy -H "Content-Type: application/json" -H "X-Hub-Signature-256: sha256=$SIG" -d "$BODY"