[ { "id": "matrix-deploy", "execute-command": "/usr/local/bin/matrix-deploy.sh", "command-working-directory": "/opt/matrix-config", "response-message": "Deploying cinny config...", "trigger-rule": { "match": { "type": "payload-hash-sha256", "secret": "{{ getenv "MATRIX_DEPLOY_SECRET" | js }}", "parameter": { "source": "header", "name": "X-Gitea-Signature" } } } }, { "id": "cinny-build", "execute-command": "/usr/local/bin/cinny-build.sh", "command-working-directory": "/opt/lotus-cinny", "response-message": "Cinny merge + build triggered", "trigger-rule": { "match": { "type": "value", "value": "{{ getenv "CINNY_BUILD_TOKEN" | js }}", "parameter": { "source": "header", "name": "X-Build-Token" } } } }, { "id": "lotus-deploy", "execute-command": "/usr/local/bin/lotus_deploy.sh", "command-working-directory": "/opt/lotus-cinny", "response-message": "Deploying Lotus Chat...", "trigger-rule": { "and": [ { "match": { "type": "payload-hash-sha256", "secret": "{{ getenv "LOTUS_DEPLOY_SECRET" | js }}", "parameter": { "source": "header", "name": "X-Gitea-Signature" } } }, { "match": { "type": "value", "value": "refs/heads/lotus", "parameter": { "source": "payload", "name": "ref" } } } ] } } ]