File tree 2 files changed +10
-21
lines changed
2 files changed +10
-21
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,12 @@ jobs:
10
10
dist-files-size-diff :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - name : Download dist-size-diff artifact
13
+ - name : Download artifacts
14
14
uses : actions/download-artifact@v4
15
15
with :
16
16
name : dist-size-diff
17
17
run-id : ${{ github.event.workflow_run.id }}
18
-
19
- - name : Download pr-number artifact
20
- uses : actions/download-artifact@v4
21
- with :
22
- name : pr-number
23
- run-id : ${{ github.event.workflow_run.id }}
18
+ github-token : ${{ secrets.GITHUB_TOKEN }}
24
19
25
20
- name : Read pr-number artifact to env var
26
21
id : read-pr-number
31
26
uses : marocchino/sticky-pull-request-comment@v2
32
27
with :
33
28
number : ${{ steps.read-pr-number.outputs.pr-number }}
34
- path : ./dist-size- diff.md
29
+ path : ./diff.md
Original file line number Diff line number Diff line change @@ -60,21 +60,15 @@ jobs:
60
60
console.log(diff);
61
61
62
62
fs.writeFileSync(process.env.GITHUB_WORKSPACE + '/dist-size-diff.md', diff)
63
-
64
- - name : Upload the diff
65
- uses : actions/upload-artifact@v4
66
- with :
67
- name : dist-size-diff
68
- path : ./dist-size-diff.md
69
63
70
64
- name : Save PR number
71
- env :
72
- PR_NUMBER : ${{ github.event.number }}
73
65
run : |
74
- echo $PR_NUMBER > ./ pr-number
75
-
76
- - name : Upload the PR number
66
+ echo "${{ github.event.number }}" > pr-number
67
+
68
+ - name : Upload artifacts
77
69
uses : actions/upload-artifact@v4
78
70
with :
79
- name : pr-number
80
- path : ./pr-number
71
+ name : dist-size-diff
72
+ path : |
73
+ ./diff.md
74
+ ./pr-number
You can’t perform that action at this time.
0 commit comments