Skip to content

Commit 8ae660c

Browse files
committed
ci: don't run EE tests on forks by default
This patch adds the condition to run this workflow only for main repo. It helps to avoid failed CI on forks.
1 parent 6cddcd7 commit 8ae660c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/testing.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,19 @@ jobs:
115115

116116
run-tests-ee:
117117
# The same as for run-tests-ce, but it does not run on pull requests from
118-
# forks by default. Tests will run only when the pull request is labeled
119-
# with `full-ci`. To avoid security problems, the label must be reset
120-
# manually for every run.
118+
# forks and on forks by default. Tests from forks will run only when the
119+
# pull request is labeled with `full-ci`. To avoid security problems, the
120+
# label must be reset manually for every run.
121121
#
122122
# We need to use `pull_request_target` because it has access to base
123123
# repository secrets unlike `pull_request`.
124-
if: (github.event_name == 'push') ||
125-
(github.event_name == 'pull_request_target' &&
126-
github.event.pull_request.head.repo.full_name != github.repository &&
127-
github.event.label.name == 'full-ci') ||
128-
(github.event_name == 'workflow_dispatch')
124+
if: |
125+
github.repository == 'tarantool/go-tarantool' &&
126+
(github.event_name == 'push' ||
127+
(github.event_name == 'pull_request_target' &&
128+
github.event.pull_request.head.repo.full_name != github.repository &&
129+
github.event.label.name == 'full-ci')) ||
130+
github.event_name == 'workflow_dispatch'
129131
130132
runs-on: ubuntu-latest
131133

0 commit comments

Comments
 (0)