Files
2026-06-16 20:06:05 +08:00

33 lines
733 B
JSON

[
{
"id": "myansuran-deploy",
"execute-command": "/deploy.sh",
"command-working-directory": "/srv/myansuran",
"response-message": "Deploy myAnsuran dimulakan.",
"trigger-rule": {
"and": [
{
"match": {
"type": "payload-hmac-sha256",
"secret": "{{ getenv "WEBHOOK_SECRET" }}",
"parameter": {
"source": "header",
"name": "X-Gitea-Signature"
}
}
},
{
"match": {
"type": "value",
"value": "refs/heads/master",
"parameter": {
"source": "payload",
"name": "ref"
}
}
}
]
}
}
]