Skip to content

Commit 427a9cc

Browse files
committed
do not run untrusted ci if trusted
1 parent 3e26ea0 commit 427a9cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ jobs:
7272
if:
7373
github.event_name == 'repository_dispatch' &&
7474
github.event.client_payload.slash_command.sha != '' &&
75-
contains(github.event.client_payload.pull_request.head.sha, github.event.client_payload.slash_command.sha)
75+
contains(github.event.client_payload.pull_request.head.sha, github.event.client_payload.slash_command.sha) &&
76+
!(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)

0 commit comments

Comments
 (0)