From dd2034282571d01e6891ccfaf301185507d71ac2 Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Tue, 11 Feb 2025 12:55:13 +0100 Subject: [PATCH] Don't run CI twice (on push AND pull request) (#2049) --- .github/workflows/test.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f7dc0c8..5a4e180 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -5,6 +5,7 @@ on: [push, pull_request] jobs: ubuntu: 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 uses: actions/checkout@v4 @@ -17,6 +18,7 @@ jobs: macos: runs-on: macos-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 uses: actions/checkout@v4 @@ -27,6 +29,7 @@ jobs: windows: runs-on: windows-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: Prepare Git for Checkout on Windows run: |