Skip to content

Commit b665268

Browse files
committed
minor #2330 Test diff size (2) (Kocal)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- Test diff size (2) I want to see if #2329 works. Commits ------- f878dc7 Test diff size (2)
2 parents 22dadd7 + f878dc7 commit b665268

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed

.github/workflows/dist-files-size-diff-comment.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff 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
@@ -31,4 +26,4 @@ jobs:
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

.github/workflows/dist-files-size-diff.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,15 @@ 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
71-
env:
72-
PR_NUMBER: ${{ github.event.number }}
7365
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
7769
uses: actions/upload-artifact@v4
7870
with:
79-
name: pr-number
80-
path: ./pr-number
71+
name: dist-size-diff
72+
path: |
73+
./diff.md
74+
./pr-number

0 commit comments

Comments
 (0)