Skip to content

Commit e9a073c

Browse files
authored
ci: Fix check for external contributors (#12558)
I noticed that this was not actually working, maybe the check here was wrong 🤔 According to here: https://stackoverflow.com/questions/61886993/in-github-actions-how-to-get-the-type-of-a-trigger-event-as-a-variable this should work!
1 parent 9724ec1 commit e9a073c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ jobs:
235235
runs-on: ubuntu-20.04
236236
if: |
237237
github.event_name == 'pull_request'
238-
&& (github.action == 'opened' || github.action == 'reopened')
238+
&& (github.event.action == 'opened' || github.event.action == 'reopened')
239239
&& github.event.pull_request.author_association != 'COLLABORATOR'
240240
&& github.event.pull_request.author_association != 'MEMBER'
241241
&& github.event.pull_request.author_association != 'OWNER'

0 commit comments

Comments
 (0)