Skip to content

Commit 9a8ecf4

Browse files
committed
Fix External Libs results workflow
1 parent 79a112b commit 9a8ecf4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Diff for: .github/workflows/publishlib.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
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

1616
jobs:
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 }}

0 commit comments

Comments
 (0)