@@ -31,28 +31,28 @@ jobs:
3131 run : |
3232 PROJECT_REPO="matplotlib/matplotlib"
3333 BRANCH="main"
34- WORKFLOW_NAME="cibuildwheel.yml"
3534 ARTIFACT_PATTERN="cibw-wheels-*"
3635
37- gh run --repo "${PROJECT_REPO}" \
38- list --branch "${BRANCH}" \
39- --workflow "${WORKFLOW_NAME}" \
40- --json event,status,conclusion,databaseId > runs.json
41- RUN_ID=$(
42- jq --compact-output \
43- '[
44- .[] |
45- # Filter on "push" events to main (merged PRs) ...
46- select(.event == "push") |
47- # that have completed successfully ...
48- select(.status == "completed" and .conclusion == "success")
49- ] |
50- # and get ID of latest build of wheels.
51- sort_by(.databaseId) | reverse | .[0].databaseId' runs.json
52- )
53- gh run --repo "${PROJECT_REPO}" view "${RUN_ID}"
54- gh run --repo "${PROJECT_REPO}" \
55- download "${RUN_ID}" --pattern "${ARTIFACT_PATTERN}"
36+ for WORKFLOW_NAME in cibuildwheel.yml wasm.yml; do
37+ gh run --repo "${PROJECT_REPO}" \
38+ list --branch "${BRANCH}" \
39+ --workflow "${WORKFLOW_NAME}" \
40+ --json event,status,conclusion,databaseId > runs.json
41+ RUN_ID=$(
42+ jq --compact-output \
43+ '[
44+ .[] |
45+ # Filter on "push" events to main (merged PRs) ...
46+ select(.event == "push") |
47+ # that have completed successfully ...
48+ select(.status == "completed" and .conclusion == "success")
49+ ] |
50+ # and get ID of latest build of wheels.
51+ sort_by(.databaseId) | reverse | .[0].databaseId' runs.json
52+ )
53+ gh run --repo "${PROJECT_REPO}" view "${RUN_ID}"
54+ gh run --repo "${PROJECT_REPO}" download "${RUN_ID}" --pattern "${ARTIFACT_PATTERN}"
55+ done
5656
5757 mkdir dist
5858 mv ${ARTIFACT_PATTERN}/*.whl dist/
0 commit comments