Skip to content

Commit eb1bcdc

Browse files
authored
fix(ci): dont run appium tests for PRs from forked repos
1 parent 6a5ce8d commit eb1bcdc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/appium_Android.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ env:
2121

2222
jobs:
2323
appium:
24-
# Skip this job if the repository is a fork
25-
if: github.repository == 'codeceptjs/CodeceptJS'
24+
# Run ONLY on the main repo AND (if it's a push OR a PR from the same repo)
25+
if: github.repository == 'codeceptjs/CodeceptJS' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
2626
runs-on: ubuntu-22.04
2727
timeout-minutes: 30
2828

0 commit comments

Comments
 (0)