Avoid duplicate workflows for local pulls (#2941)

This commit is contained in:
Guilherme Lawless 2020-09-15 18:54:11 +01:00 committed by GitHub
commit 94ee64e341
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

@ -5,6 +5,7 @@ on: [push, pull_request]
jobs:
clang_format:
runs-on: ubuntu-18.04
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@50fbc62
- name: Get clang-format 8

View file

@ -13,6 +13,7 @@ jobs:
env:
BOOST_ROOT: /tmp/boost
DEADLINE_SCALE_FACTOR: 2
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@722adc6
- name: Checkout Submodules
@ -25,6 +26,7 @@ jobs:
gcc_test:
runs-on: ubuntu-18.04
timeout-minutes: 60
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@722adc6
- name: Checkout Submodules
@ -37,6 +39,7 @@ jobs:
clang_test:
runs-on: ubuntu-18.04
timeout-minutes: 60
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@722adc6
- name: Checkout Submodules
@ -52,6 +55,7 @@ jobs:
env:
RELEASE: 1
DEADLINE_SCALE_FACTOR: 2
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@722adc6
- name: Windows Defender

View file

@ -11,6 +11,7 @@ jobs:
runs-on: macOS-latest
env:
BOOST_ROOT: /tmp/boost
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@722adc6
- name: Checkout Submodules
@ -23,6 +24,7 @@ jobs:
gcc_test:
runs-on: ubuntu-18.04
timeout-minutes: 60
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@722adc6
- name: Checkout Submodules
@ -35,6 +37,7 @@ jobs:
clang_test:
runs-on: ubuntu-18.04
timeout-minutes: 60
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@722adc6
- name: Checkout Submodules
@ -47,6 +50,7 @@ jobs:
windows_test:
runs-on: windows-latest
timeout-minutes: 60
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@722adc6
- name: Windows Defender