Skip to content

Commit 3f4545f

Browse files
committed
Update 'skip on forks condition'
1 parent 3247f5a commit 3f4545f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/python_pytest.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ jobs:
7373

7474
pytest:
7575
name: Pytest (All, Python ${{ matrix.python-version }}, ${{ matrix.os }})
76-
# Don't run on forks
77-
if: github.repository_owner == 'airbytehq'
76+
# Don't run on forks. Run on pushes to main, and on PRs that are not from forks.
77+
if: >
78+
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
79+
(github.event.pull_request.head.repo.fork == false)
7880
strategy:
7981
matrix:
8082
python-version: [

0 commit comments

Comments
 (0)