From f1a0ed5a6aa5b1782b39610bc17aa2055b117e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brostr=C3=B6m=2EA=20=7C=20Evul?= Date: Tue, 9 Jul 2024 14:56:08 +0200 Subject: [PATCH] Added better check for test only running once (#1206) --- .github/workflows/testing.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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