File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
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/libraries-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,13 +26,18 @@ jobs:
26
26
run : |
27
27
mkdir -p artifacts && cd artifacts
28
28
mkdir -p libraries-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"/* libraries-report
36
+ if [[ "$name" == "Event File" ]]; then
37
+ mv "temp_$name"/* event-file
38
+ else
39
+ mv "temp_$name"/* libraries-report
40
+ fi
36
41
rm -r "temp_$name"
37
42
if [[ "$name" == "event.json" ]]; then
38
43
mkdir -p artifacts/Event\ file
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 :
40
40
fi
41
41
rm -r "temp_$name"
42
42
done
43
- echo "Contents of 'sizes-report':"
44
- ls -R sizes-report
45
43
echo "Contents of parent directory:"
46
44
ls -R ..
47
45
You can’t perform that action at this time.
0 commit comments