Skip to content

Commit 38ee3e7

Browse files
committed
Update publishsizes.yml
1 parent 77eb3ba commit 38ee3e7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/publishsizes.yml

Lines changed: 7 additions & 4 deletions
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/sizes-report
1313
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
14-
PR_EVENT_PATH: artifacts/Event File/event.json
14+
PR_EVENT_PATH: artifacts/event-file/event.json
1515

1616
jobs:
1717
lib-test-results:
@@ -26,17 +26,20 @@ jobs:
2626
run: |
2727
mkdir -p artifacts && cd artifacts
2828
mkdir -p sizes-report
29+
mkdir -p event-file
2930
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
3031
gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
3132
do
3233
IFS=$'\t' read name url <<< "$artifact"
3334
gh api $url > "$name.zip"
3435
unzip -j "$name.zip" -d "temp_$name"
35-
mv "temp_$name"/* sizes-report/
36+
if [[ "$name" == "Event File" ]]; then
37+
mv "temp_$name"/* event-file
38+
else
39+
mv "temp_$name"/* sizes-report
40+
fi
3641
rm -r "temp_$name"
3742
done
38-
echo "Contents of 'sizes-report':"
39-
ls -R sizes-report
4043
echo "Contents of parent directory:"
4144
ls -R ..
4245

0 commit comments

Comments
 (0)