fix webhooks

This commit is contained in:
Joshua Seigler 2025-06-15 16:04:04 -04:00
parent 2ee1ebbdc3
commit 510a49ec0e

View file

@ -114,18 +114,14 @@ Also make sure to replace your execute-command lines with ones referencing your
[ [
{ {
"id": "update-pages", "id": "update-pages",
"execute-command": "su joshua /home/joshua/webhooks/update-pages.sh", "execute-command": "/usr/bin/sudo",
"command-working-directory": "/var/www",
"pass-arguments-to-command": "pass-arguments-to-command":
[ [
{ { "source": "string", "name": "-u"},
"source": "payload", { "source": "string", "name": "joshua"},
"name": "repository.name" { "source": "string", "name": "/home/joshua/webhooks/update-pages.sh"},
}, { "source": "payload", "name": "repository.name" },
{ { "source": "payload", "name": "repository.clone_url" }
"source": "payload",
"name": "repository.clone_url"
},
], ],
"trigger-rule": "trigger-rule":
{ {
@ -160,14 +156,13 @@ Also make sure to replace your execute-command lines with ones referencing your
}, },
{ {
"id": "remove-pages", "id": "remove-pages",
"execute-command": "su joshua /home/joshua/webhooks/remove-pages.sh", "execute-command": "/usr/bin/sudo",
"command-working-directory": "/var/www",
"pass-arguments-to-command": "pass-arguments-to-command":
[ [
{ { "source": "string", "name": "-u"},
"source": "payload", { "source": "string", "name": "joshua"},
"name": "repository.name" { "source": "string", "name": "/home/joshua/webhooks/remove-pages.sh"},
}, { "source": "payload", "name": "repository.name" }
], ],
"trigger-rule": "trigger-rule":
{ {