File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1111 # It's convenient to set variables for values used multiple times in the workflow
1212 SKETCHES_REPORTS_PATH : artifacts/libraries-report
1313 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
14- PR_EVENT_PATH : artifacts/Event File/ event.json
14+ PR_NUMBER : ${{ github. event.workflow_run.pull_requests[0].number }}
1515
1616jobs :
1717 lib-test-results :
@@ -25,17 +25,22 @@ jobs:
2525 - name : Download and Extract Artifacts
2626 run : |
2727 mkdir -p artifacts && cd artifacts
28+ mkdir -p libraries-report
2829 artifacts_url=${{ github.event.workflow_run.artifacts_url }}
2930 gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
3031 do
3132 IFS=$'\t' read name url <<< "$artifact"
3233 gh api $url > "$name.zip"
33- unzip -d "$name" "$name.zip"
34+ unzip -j "$name.zip" -d "temp_$name"
35+ mv "temp_$name"/* libraries-report
36+ rm -r "temp_$name"
3437 done
38+ echo "Contents of parent directory:"
39+ ls -R ..
3540
3641 - name : Report results
37- uses : P-R-O-C-H-Y/report-size-deltas@main
42+ uses : P-R-O-C-H-Y/report-size-deltas@libs
3843 with :
3944 sketches-reports-source : ${{ env.SKETCHES_REPORTS_PATH }}
4045 github-token : ${{ env.GITHUB_TOKEN }}
41- pr-event-path : ${{ env.PR_EVENT_PATH }}
46+ pr-number : ${{ env.PR_NUMBER }}
You can’t perform that action at this time.
0 commit comments