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",
|
||||
"execute-command": "su joshua /home/joshua/webhooks/update-pages.sh",
|
||||
"command-working-directory": "/var/www",
|
||||
"execute-command": "/usr/bin/sudo",
|
||||
"pass-arguments-to-command":
|
||||
[
|
||||
{
|
||||
"source": "payload",
|
||||
"name": "repository.name"
|
||||
},
|
||||
{
|
||||
"source": "payload",
|
||||
"name": "repository.clone_url"
|
||||
},
|
||||
{ "source": "string", "name": "-u"},
|
||||
{ "source": "string", "name": "joshua"},
|
||||
{ "source": "string", "name": "/home/joshua/webhooks/update-pages.sh"},
|
||||
{ "source": "payload", "name": "repository.name" },
|
||||
{ "source": "payload", "name": "repository.clone_url" }
|
||||
],
|
||||
"trigger-rule":
|
||||
{
|
||||
|
@ -160,14 +156,13 @@ Also make sure to replace your execute-command lines with ones referencing your
|
|||
},
|
||||
{
|
||||
"id": "remove-pages",
|
||||
"execute-command": "su joshua /home/joshua/webhooks/remove-pages.sh",
|
||||
"command-working-directory": "/var/www",
|
||||
"execute-command": "/usr/bin/sudo",
|
||||
"pass-arguments-to-command":
|
||||
[
|
||||
{
|
||||
"source": "payload",
|
||||
"name": "repository.name"
|
||||
},
|
||||
{ "source": "string", "name": "-u"},
|
||||
{ "source": "string", "name": "joshua"},
|
||||
{ "source": "string", "name": "/home/joshua/webhooks/remove-pages.sh"},
|
||||
{ "source": "payload", "name": "repository.name" }
|
||||
],
|
||||
"trigger-rule":
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue