Don't run CI twice (on push AND pull request)

This commit is contained in:
Florian Albrechtskirchinger 2025-02-11 09:59:35 +01:00
parent a268d65c4f
commit 6edb381e15
No known key found for this signature in database
GPG Key ID: 9C4E2AE92D3A9595

View File

@ -5,6 +5,7 @@ on: [push, pull_request]
jobs: jobs:
ubuntu: ubuntu:
runs-on: ubuntu-latest 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: steps:
- name: checkout - name: checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -17,6 +18,7 @@ jobs:
macos: macos:
runs-on: macos-latest 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: steps:
- name: checkout - name: checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -27,6 +29,7 @@ jobs:
windows: windows:
runs-on: windows-latest 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: steps:
- name: Prepare Git for Checkout on Windows - name: Prepare Git for Checkout on Windows
run: | run: |