Skip to content

Commit 7948812

Browse files
Mahangu Weerasingheclaude
andcommitted
Upgrade dawidd6/action-download-artifact to v20 and filter by name
Automattic/jetpack#47415 upgraded to actions/upload-artifact@v7, which introduced archive: false for build cache artifacts. dawidd6 v11 could not handle the mix of zipped and non-zipped artifacts when downloading all artifacts from a run. Upgrade to v20 (which uses @actions/artifact@6.2.1) and add a name filter (test-output-*) to only download the test output artifacts the report generation needs. Also fix workflow_dispatch payload handling so the workflow can be triggered manually for testing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3ac6c73 commit 7948812

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/report.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333

3434
- name: Set environment variables safely
3535
env:
36-
PAYLOAD: ${{ toJson(github.event.client_payload) }}
36+
# inputs.client_payload for workflow_dispatch, event.client_payload for repository_dispatch
37+
PAYLOAD: ${{ github.event.inputs.client_payload || toJson(github.event.client_payload) }}
3738
run: |
3839
# Use jq to safely extract values from client_payload
3940
echo "PR_NUMBER=$(echo "$PAYLOAD" | jq -r '.pr_number // ""')" >> $GITHUB_ENV
@@ -82,12 +83,14 @@ jobs:
8283
run: ./bin/wait-for-artifacts.sh
8384

8485
- name: Download artifacts
85-
uses: dawidd6/action-download-artifact@23e7b2e9aa32a408a649c4fca36dee127ff5d325 # v11
86+
uses: dawidd6/action-download-artifact@8305c0f1062bb0d184d09ef4493ecb9288447732 # v20
8687
with:
8788
repo: Automattic/jetpack
8889
workflow: e2e-tests.yml
8990
workflow_conclusion: "completed"
9091
run_id: ${{ env.RUN_ID }}
92+
name: test-output-*
93+
name_is_regexp: true
9194
path: ../downloads
9295

9396
- name: Generate test report

0 commit comments

Comments
 (0)