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