You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git-artifacts: allow restricting which artifacts are built
Users can now specify which artifacts they want to build, via passing a
client payload that sets the `build_only` attribute, like this:
curl -i -H 'Authorization: token <PAT>' \
-H 'Accept: application/vnd.github.everest-preview+json' \
--request POST \
--data '{
"event_type": "git-artifacts",
"client_payload": {
"build_only": "portable-x86_64"
}
}' https://api.github.com/repos/<user>/git/dispatches
The `build_only` value is a comma-separated list of prefixes. Therefore,
`installer,portable` will build `installer-x86_64`, `installer-i686`,
`portable-x86_64` and `portable-i686`, and an empty or unset value will
build all.
Please note that the `mingw-w64-git` packages are built always, as it
would be tricky to figure out when they need to be built (for example,
`build_only=portable-x86_64` technically does not need `pkg-i686` to be
built, while `build_only=portable` does).
Signed-off-by: Johannes Schindelin <[email protected]>
- name: Determine whether this job should be skipped
187
+
shell: python
188
+
run: |
189
+
import os
190
+
if ("BUILD_ONLY" in os.environ) and len([x for x in os.environ["BUILD_ONLY"].split(",") if "${{matrix.artifact.name}}-${{matrix.arch.name}}".startswith(x)]) == 0:
0 commit comments