Skip to content

Commit 0e85731

Browse files
authored
updating trigger conditions (#2982)
moving the contains check to the outer if so we dont do a yarn install on every comment
1 parent 69a3121 commit 0e85731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-comment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ jobs:
77
if: |
88
github.event.issue.pull_request &&
99
github.repository == 'adobe/react-spectrum' &&
10-
github.actor == 'LFDanLu'
10+
github.event.comment.author_association == 'MEMBER' &&
11+
contains(github.event.comment.body, 'GET_BUILD')
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@main
@@ -18,7 +19,6 @@ jobs:
1819
- name: install
1920
run: yarn install
2021
- name: Comment contains trigger
21-
if: contains(github.event.comment.body, 'GET_BUILD')
2222
uses: ./.github/actions/branch
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)