Skip to content

Commit e6fd006

Browse files
committed
Allow pull_request event from fork to trigger tests
1 parent cf77990 commit e6fd006

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

.github/workflows/integration-test.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,6 @@ concurrency:
2020

2121
jobs:
2222
integration-tests:
23-
#
24-
# This condition prevents DUPLICATE attempts to run integration tests for
25-
# PRs coming from FORKS.
26-
#
27-
# When a PR originates from a fork, both a pull_request and a
28-
# pull_request_target event are triggered. This means that without a
29-
# condition, GitHub will attempt to run integration tests TWICE, once for
30-
# each event.
31-
#
32-
# To prevent this, this condition ensures that integration tests are run
33-
# in only ONE of the following cases:
34-
#
35-
# 1. The event is NOT a pull_request. This covers the case when the event
36-
# is a pull_request_target (i.e., a PR from a fork), as well as all
37-
# other cases listed in the "on" block at the top of this file.
38-
# 2. The event IS a pull_request AND the base repo and head repo are the
39-
# same (i.e., the PR is NOT from a fork).
40-
#
41-
if: github.event_name != 'pull_request' || github.event.pull_request.base.repo.full_name == github.event.pull_request.head.repo.full_name
4223
runs-on: ubuntu-latest
4324
strategy:
4425
matrix:

0 commit comments

Comments
 (0)