File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11
11
# It's convenient to set variables for values used multiple times in the workflow
12
12
SKETCHES_REPORTS_PATH : artifacts/sizes-report
13
13
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
14
- PR_EVENT_PATH : artifacts/Event File /event.json
14
+ PR_EVENT_PATH : artifacts/event-file /event.json
15
15
16
16
jobs :
17
17
lib-test-results :
@@ -26,17 +26,20 @@ jobs:
26
26
run : |
27
27
mkdir -p artifacts && cd artifacts
28
28
mkdir -p sizes-report
29
+ mkdir -p event-file
29
30
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
30
31
gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
31
32
do
32
33
IFS=$'\t' read name url <<< "$artifact"
33
34
gh api $url > "$name.zip"
34
35
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
36
41
rm -r "temp_$name"
37
42
done
38
- echo "Contents of 'sizes-report':"
39
- ls -R sizes-report
40
43
echo "Contents of parent directory:"
41
44
ls -R ..
42
45
You can’t perform that action at this time.
0 commit comments