Files
eagle0/ci/webhook/hooks.json
T
adminandGitHub e08f327bd1 remove all trailing whitespace (#2344)
* remove all trailing whitespace

* fix one scala file


Former-commit-id: c73a66046649b189f5df617fefa6e099b1c05426
2022-11-23 08:22:25 -08:00

144 lines
2.8 KiB
JSON

[
{
"id": "unity-webhook",
"execute-command":
"ci/webhook/build_and_deploy_unity.sh",
"command-working-directory": ".",
"pass-arguments-to-command":
[
{
"source": "payload",
"name": "ref"
}
],
"trigger-rule":
{
"or":
[
{
"match":
{
"type": "ip-whitelist",
"ip-range": "192.168.123.100/32"
}
},
{
"match":
{
"type": "payload-hmac-sha1",
"secret": "jake and elwood",
"parameter":
{
"source": "header",
"name": "X-Hub-Signature"
}
}
}
]
}
},
{
"id": "unity-webhook-main",
"execute-command":
"ci/webhook/build_and_deploy_unity.sh",
"command-working-directory": ".",
"pass-arguments-to-command":
[
{
"source": "string",
"name": "refs/heads/main"
}
],
"trigger-rule":
{
"or":
[
{
"match":
{
"type": "ip-whitelist",
"ip-range": "192.168.123.100/32"
}
},
{
"and":
[
{
"match": {
"type": "payload-hmac-sha1",
"secret": "jake and elwood",
"parameter": {
"source": "header",
"name": "X-Hub-Signature"
}
}
},
{
"match":
{
"type": "value",
"value": "closed",
"parameter":
{
"source": "payload",
"name": "action"
}
}
},
{
"match":
{
"type": "value",
"value": "true",
"parameter":
{
"source": "payload",
"name": "pull_request.merged"
}
}
}
]
}
]
}
},
{
"id": "notarization-webhook",
"execute-command":
"ci/webhook/push_notarized_mac.sh",
"command-working-directory": ".",
"pass-arguments-to-command":
[
{
"source": "payload",
"name": "payload"
}
],
"trigger-rule":
{
"or":
[
{
"match":
{
"type": "ip-whitelist",
"ip-range": "192.168.123.100/32"
}
},
{
"match":
{
"type": "value",
"value": "UNITY_SHARDOK_TOKEN",
"parameter":
{
"source": "url",
"name": "token"
}
}
}
]
}
}
]