Prevent in-repo PRs from running the same jobs twice

This commit is contained in:
Alejandro González 2023-07-22 15:52:29 +02:00 committed by Josh Holmer
parent bf9bda98e8
commit 70d87fdf8b

View file

@ -15,6 +15,9 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
# Prevent in-repo PRs from running the same jobs twice
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
strategy:
fail-fast: false
matrix:
@ -151,6 +154,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
# Prevent in-repo PRs from running the same jobs twice
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
steps:
- name: Checkout source
uses: actions/checkout@v3