Prevent double ci run if both push and pr happen
This commit is contained in:
parent
dd5eced094
commit
5b8fa11ed9
1
.github/workflows/linux.yml
vendored
1
.github/workflows/linux.yml
vendored
@ -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
|
||||
|
1
.github/workflows/macos.yml
vendored
1
.github/workflows/macos.yml
vendored
@ -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
|
||||
|
1
.github/workflows/windows.yml
vendored
1
.github/workflows/windows.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user