mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 20:55:44 +00:00
* remove all trailing whitespace * fix one scala file Former-commit-id: c73a66046649b189f5df617fefa6e099b1c05426
144 lines
2.8 KiB
JSON
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"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|