fix webhooks
This commit is contained in:
parent
2ee1ebbdc3
commit
510a49ec0e
1 changed files with 71 additions and 76 deletions
|
@ -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":
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue