From ede2f711fb391ea6253190a34823609dabf04a8b Mon Sep 17 00:00:00 2001 From: Weibin Zeng Date: Wed, 4 Sep 2024 09:52:22 +0800 Subject: [PATCH] feat(ci): avoid running CI if pull request is still working in progress (#615) Signed-off-by: acezen --- .github/workflows/ci.yml | 4 ++-- .github/workflows/docs.yml | 1 + .github/workflows/format.yml | 1 + .github/workflows/java.yml | 1 + .github/workflows/spark.yaml | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d53331d19..34ec752cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: ubuntu: name: Ubuntu 22.04 C++ runs-on: ubuntu-latest + if: ${{ !contains(github.event.pull_request.title, 'WIP') && !github.event.pull_request.draft }} env: GAR_TEST_DATA: ${{ github.workspace }}/graphar-testing/ steps: @@ -165,8 +166,6 @@ jobs: ./graph_info_benchmark ./arrow_chunk_reader_benchmark - - - name: Use Static Arrow working-directory: "cpp" run: | @@ -181,6 +180,7 @@ jobs: macos: name: ${{ matrix.architecture }} macOS ${{ matrix.macos-version }} C++ runs-on: macos-${{ matrix.macos-version }} + if: ${{ !contains(github.event.pull_request.title, 'WIP') && github.event.pull_request.draft == false }} env: GAR_TEST_DATA: ${{ github.workspace }}/graphar-testing/ strategy: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 44639d934..e9e7921b0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -38,6 +38,7 @@ concurrency: jobs: build-website: runs-on: ubuntu-latest + if: ${{ !contains(github.event.pull_request.title, 'WIP') && github.event.pull_request.draft == false }} steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 87f66de3c..4758cfa3c 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -42,6 +42,7 @@ concurrency: jobs: generate: runs-on: ubuntu-latest + if: ${{ !contains(github.event.pull_request.title, 'WIP') && github.event.pull_request.draft == false }} steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index a9c329552..d20d8f0e7 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -40,6 +40,7 @@ concurrency: jobs: test: runs-on: ubuntu-latest + if: ${{ !contains(github.event.pull_request.title, 'WIP') && github.event.pull_request.draft == false }} steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/spark.yaml b/.github/workflows/spark.yaml index 64bed07b8..86b20145f 100644 --- a/.github/workflows/spark.yaml +++ b/.github/workflows/spark.yaml @@ -40,6 +40,7 @@ concurrency: jobs: test: runs-on: ubuntu-20.04 + if: ${{ !contains(github.event.pull_request.title, 'WIP') && github.event.pull_request.draft == false }} env: GAR_TEST_DATA: ${{ github.workspace }}/graphar-testing/ strategy: