[
  {
    "id": "redeploy-nexus-timer",
    "execute-command": "/virt/nexus-timer/hooks/redeploy.sh",
    "command-working-directory": "/virt/nexus-timer",
    "pass-arguments-to-command": [
      { "source": "payload", "name": "ref" },
      { "source": "payload", "name": "repository.full_name" }
    ],
    "trigger-rule": {
      "and": [
        {
          "match": {
            "type": "payload-hmac-sha256",
            "secret": "YOUR_VERY_STRONG_SECRET_TOKEN_HERE_REPLACE_ME",
            "parameter": {
              "source": "header",
              "name": "X-Gitea-Signature"
            }
          }
        },
        {
          "match": {
            "type": "value",
            "value": "refs/heads/main",
            "parameter": {
              "source": "payload",
              "name": "ref"
            }
          }
        }
      ]
    },
    "include-command-output-in-response": true,
    "include-command-output-in-response-on-error": true,
    "response-message": "Webhook processed."
  }
]