Skip to content

Commit

Permalink
Prevent double ci run if both push and pr happen
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Nov 2, 2024
1 parent dd5eced commit 5b8fa11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
# -----------------------------------------------------------------------
build:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action == 'opened')
defaults:
run:
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ permissions:
jobs:
build:
runs-on: macOS-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action == 'opened')
name: "macOS Clang (C++11, Release)"
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ permissions:
jobs:
build:
runs-on: windows-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action == 'opened')
strategy:
fail-fast: true
matrix:
Expand Down

0 comments on commit 5b8fa11

Please sign in to comment.