Skip to content

Commit 8a608c5

Browse files
committed
fix(ci): event resolution for on_label_added workflow
1 parent 631c570 commit 8a608c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/on_label_added.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
split-large-pr:
10-
if: github.event.label.name == 'size/XXL'
10+
if: ${{ github.event.label.name == 'size/XXL' }}
1111
runs-on: ubuntu-latest
1212
permissions:
1313
issues: write
@@ -17,9 +17,9 @@ jobs:
1717
- name: "Suggest split large Pull Request"
1818
uses: actions/github-script@v6
1919
env:
20-
PR_NUMBER: ${{ github.event.issue.number }}
20+
PR_NUMBER: ${{ github.event.pull_request.number }}
2121
with:
2222
github-token: ${{ secrets.GITHUB_TOKEN }}
2323
script: |
24-
const script = require('.github/scripts/comment_on_large_pr.js')
25-
await script({github, context, core})
24+
const script = require('.github/scripts/comment_on_large_pr.js');
25+
await script({github, context, core});

0 commit comments

Comments
 (0)