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