From e3eeccb12ac62cce04740fb7e59b0f65242ab4a0 Mon Sep 17 00:00:00 2001 From: Dmitry Kruchinin Date: Mon, 18 Oct 2021 21:17:00 +0300 Subject: [PATCH] CI. Exclude from run build/tests jobs if PR have [WIP]/[Dependent] in the title or has "Draft" status. (#3806) --- .github/workflows/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bd896a1d4b2a..b37402c3ee25 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,9 +5,14 @@ on: - 'master' - 'develop' pull_request: + types: [edited, ready_for_review, opened, synchronize, reopened] jobs: Unit_testing: + if: | + github.event.pull_request.draft == false && + !startsWith(github.event.pull_request.title, '[WIP]') && + !startsWith(github.event.pull_request.title, '[Dependent]') runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -75,6 +80,10 @@ jobs: ${{ github.workspace }}/lcov.info E2E_testing: + if: | + github.event.pull_request.draft == false && + !startsWith(github.event.pull_request.title, '[WIP]') && + !startsWith(github.event.pull_request.title, '[Dependent]') runs-on: ubuntu-latest strategy: fail-fast: false