Skip to content

Commit 76ac237

Browse files
authored
fix: run-id reference in bundle-compare workflow (#8365)
* fix: run-id reference in bundle-compare workflow Signed-off-by: Aviv Keller <me@aviv.sh> * while im here might as well make this robust :-) Signed-off-by: Aviv Keller <me@aviv.sh> --------- Signed-off-by: Aviv Keller <me@aviv.sh>
1 parent 8504a85 commit 76ac237

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/bundle-compare.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
compare:
1616
name: Compare Bundle Stats
1717
runs-on: ubuntu-latest
18+
if: github.event.workflow_run.event == 'pull_request'
1819

1920
steps:
2021
- name: Harden Runner
@@ -30,7 +31,7 @@ jobs:
3031
with:
3132
name: webpack-stats
3233
path: head-stats
33-
run-id: ${{ github.event.workflow_run.workflow_id }}
34+
run-id: ${{ github.event.workflow_run.id }}
3435
github-token: ${{ secrets.GITHUB_TOKEN }}
3536

3637
- name: Get Run ID from BASE

0 commit comments

Comments
 (0)