From 8fc60e5d1be2b93f63b9e5c84ac1fec991a1718d Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 1 Dec 2023 12:17:38 +0100 Subject: [PATCH] Only run tests when on the original repository See https://github.com/hydephp/hyde/issues/233 --- .github/workflows/run-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 60e7668..984fdd7 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -21,7 +21,7 @@ jobs: runs-on: ${{ matrix.os }} name: Hyde tests - ${{ matrix.os }} (${{ matrix.dependency-version }}) - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' && github.event.repository.full_name == 'hydephp/hyde' steps: - uses: shivammathur/setup-php@v2 @@ -55,7 +55,7 @@ jobs: runs-on: ${{ matrix.os }} name: Hyde tests - ${{ matrix.os }} ${{ matrix.php }} (develop) - if: github.ref == 'refs/heads/develop' + if: github.ref == 'refs/heads/develop' && github.event.repository.full_name == 'hydephp/hyde' steps: - uses: shivammathur/setup-php@v2