Skip to content

Commit

Permalink
Prevent in-repo PRs from running the same jobs twice
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTMjugador committed Jul 22, 2023
1 parent 4ec82c3 commit b99ffa7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/oxipng.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b99ffa7

Please sign in to comment.