diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 8c7983d4f..34cbaa880 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -2,11 +2,13 @@ name: Testing on: pull_request: push: - branches: main jobs: validate: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || + github.event.pull_request.head.repo.full_name != + github.event.pull_request.base.repo.full_name steps: - name: Checkout the source code uses: actions/checkout@master @@ -17,6 +19,9 @@ jobs: lint: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || + github.event.pull_request.head.repo.full_name != + github.event.pull_request.base.repo.full_name steps: - name: Checkout the source code uses: actions/checkout@master @@ -28,6 +33,9 @@ jobs: testing: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || + github.event.pull_request.head.repo.full_name != + github.event.pull_request.base.repo.full_name steps: - name: Checkout the source code uses: actions/checkout@master