From 167fb1a8b56a5ff6c7e035987328f4f0b7425c80 Mon Sep 17 00:00:00 2001 From: jackwener Date: Fri, 25 Mar 2022 14:34:59 +0800 Subject: [PATCH] ci: disable GitHub actions for draft PRs --- .github/workflows/dev.yml | 3 +++ .github/workflows/rust.yml | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index f0f17c0a94ab5..155571b49835b 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -20,6 +20,7 @@ on: [push, pull_request] jobs: lint: + if: github.event.pull_request.draft == false name: Lint C++, Python, R, Rust, Docker runs-on: ubuntu-latest steps: @@ -39,6 +40,7 @@ jobs: run: archery lint --rat rat: + if: github.event.pull_request.draft == false name: Release Audit Tool (RAT) runs-on: ubuntu-latest steps: @@ -52,6 +54,7 @@ jobs: run: ./dev/release/run-rat.sh . prettier: + if: github.event.pull_request.draft == false name: Use prettier to check formatting of documents runs-on: ubuntu-latest steps: diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5f18846de95ae..c0d77ffdab1c1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,6 +25,7 @@ on: jobs: # build the library, a compilation step used by multiple steps below linux-build-lib: + if: github.event.pull_request.draft == false name: Build Libraries on AMD64 Rust ${{ matrix.rust }} runs-on: ubuntu-latest strategy: @@ -87,6 +88,7 @@ jobs: # test the crate linux-test: + if: github.event.pull_request.draft == false name: Test Workspace on AMD64 Rust ${{ matrix.rust }} needs: [linux-build-lib] runs-on: ubuntu-latest @@ -151,6 +153,7 @@ jobs: CARGO_TARGET_DIR: "/github/home/target" integration-test: + if: github.event.pull_request.draft == false name: "Integration Test" needs: [linux-build-lib] runs-on: ubuntu-latest @@ -221,6 +224,7 @@ jobs: POSTGRES_PASSWORD: postgres windows-and-macos: + if: github.event.pull_request.draft == false name: Test on ${{ matrix.os }} Rust ${{ matrix.rust }} runs-on: ${{ matrix.os }} strategy: @@ -249,6 +253,7 @@ jobs: RUSTFLAGS: "-C debuginfo=0" test-datafusion-pyarrow: + if: github.event.pull_request.draft == false needs: [linux-build-lib] runs-on: ubuntu-latest strategy: @@ -298,6 +303,7 @@ jobs: CARGO_TARGET_DIR: "/github/home/target" lint: + if: github.event.pull_request.draft == false name: Lint runs-on: ubuntu-latest container: @@ -355,6 +361,7 @@ jobs: CARGO_TARGET_DIR: "/github/home/target" miri-checks: + if: github.event.pull_request.draft == false name: MIRI runs-on: ubuntu-latest strategy: