From 6819206ea70b23144ff1224b21281472a6b37007 Mon Sep 17 00:00:00 2001 From: AndreasBrostrom Date: Tue, 9 Jul 2024 14:54:46 +0200 Subject: [PATCH] Added better check for test only running once --- .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