Fix granular webhook payloads in 00-webhook

This commit is contained in:
Arthur Bodera
2024-06-19 10:14:06 +10:00
committed by GitHub
parent 7812894fdc
commit cf5f0ada3b
+2 -3
View File
@@ -53,7 +53,7 @@ case "${ACTION}" in
curl --request POST \
--url "${WEBHOOK_PRE_BACKUP_URL}" \
--header 'Content-Type: application/json' \
--data '{"status": "error"}' \
--data '{"status": "pre-backup"}' \
--max-time 10 \
--retry 5 \
${WEBHOOK_EXTRA_ARGS}
@@ -66,11 +66,10 @@ case "${ACTION}" in
curl --request POST \
--url "${WEBHOOK_POST_BACKUP_URL}" \
--header 'Content-Type: application/json' \
--data '{"status": "error"}' \
--data '{"status": "post-backup"}' \
--max-time 10 \
--retry 5 \
${WEBHOOK_EXTRA_ARGS}
fi
;;
esac