Prevent in-repo PRs from running the same jobs twice
This commit is contained in:
parent
bf9bda98e8
commit
70d87fdf8b
1 changed files with 6 additions and 0 deletions
6
.github/workflows/oxipng.yml
vendored
6
.github/workflows/oxipng.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue