File tree 1 file changed +9
-4
lines changed
1 file changed +9
-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/libraries-report
13
13
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 }}
15
15
16
16
jobs :
17
17
lib-test-results :
@@ -25,17 +25,22 @@ jobs:
25
25
- name : Download and Extract Artifacts
26
26
run : |
27
27
mkdir -p artifacts && cd artifacts
28
+ mkdir -p libraries-report
28
29
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
29
30
gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
30
31
do
31
32
IFS=$'\t' read name url <<< "$artifact"
32
33
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"
34
37
done
38
+ echo "Contents of parent directory:"
39
+ ls -R ..
35
40
36
41
- 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
38
43
with :
39
44
sketches-reports-source : ${{ env.SKETCHES_REPORTS_PATH }}
40
45
github-token : ${{ env.GITHUB_TOKEN }}
41
- pr-event-path : ${{ env.PR_EVENT_PATH }}
46
+ pr-number : ${{ env.PR_NUMBER }}
You can’t perform that action at this time.
0 commit comments