File tree Expand file tree Collapse file tree 2 files changed +10
-19
lines changed Expand file tree Collapse file tree 2 files changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,12 @@ jobs:
1010 dist-files-size-diff :
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : Download dist-size-diff artifact
13+ - name : Download artifacts
1414 uses : actions/download-artifact@v4
1515 with :
1616 name : dist-size-diff
1717 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 }}
2419
2520 - name : Read pr-number artifact to env var
2621 id : read-pr-number
3126 uses : marocchino/sticky-pull-request-comment@v2
3227 with :
3328 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,17 @@ jobs:
6060 console.log(diff);
6161
6262 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
6963
7064 - name : Save PR number
7165 env :
72- PR_NUMBER : ${{ github.event.number }}
66+ PR_NUMBER : ${{ github.event.number }}
7367 run : |
7468 echo $PR_NUMBER > ./pr-number
75-
76- - name : Upload the PR number
69+
70+ - name : Upload artifacts
7771 uses : actions/upload-artifact@v4
7872 with :
79- name : pr-number
80- path : ./pr-number
73+ name : dist-size-diff
74+ path : |
75+ ./diff.md
76+ ./pr-number
You can’t perform that action at this time.
0 commit comments