Skip to content

Commit 6f2eeaf

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 6f2eeaf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/report.yml

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

3434
- name: Set environment variables safely
3535
env:
36-
PAYLOAD: ${{ toJson(github.event.client_payload) }}
36+
PAYLOAD: ${{ github.event.inputs.client_payload || toJson(github.event.client_payload) }}
3737
run: |
3838
# Use jq to safely extract values from client_payload
3939
echo "PR_NUMBER=$(echo "$PAYLOAD" | jq -r '.pr_number // ""')" >> $GITHUB_ENV
@@ -82,12 +82,14 @@ jobs:
8282
run: ./bin/wait-for-artifacts.sh
8383

8484
- name: Download artifacts
85-
uses: dawidd6/action-download-artifact@23e7b2e9aa32a408a649c4fca36dee127ff5d325 # v11
85+
uses: dawidd6/action-download-artifact@v20
8686
with:
8787
repo: Automattic/jetpack
8888
workflow: e2e-tests.yml
8989
workflow_conclusion: "completed"
9090
run_id: ${{ env.RUN_ID }}
91+
name: test-output-*
92+
name_is_regexp: true
9193
path: ../downloads
9294

9395
- name: Generate test report

0 commit comments

Comments
 (0)