From 94ee64e34152449dfea90738aa12247f355f77f4 Mon Sep 17 00:00:00 2001 From: Guilherme Lawless Date: Tue, 15 Sep 2020 18:54:11 +0100 Subject: [PATCH] Avoid duplicate workflows for local pulls (#2941) --- .github/workflows/analyzers.yml | 1 + .github/workflows/rocksdb_tests.yml | 4 ++++ .github/workflows/tests.yml | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/analyzers.yml b/.github/workflows/analyzers.yml index 8bf6a462..b6e9b3cb 100644 --- a/.github/workflows/analyzers.yml +++ b/.github/workflows/analyzers.yml @@ -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 diff --git a/.github/workflows/rocksdb_tests.yml b/.github/workflows/rocksdb_tests.yml index e9e70749..01f15d3c 100644 --- a/.github/workflows/rocksdb_tests.yml +++ b/.github/workflows/rocksdb_tests.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 14f4dfef..95462122 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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