From d6b2f4ba68a9ab4ccba8d5361cb41ee38c076919 Mon Sep 17 00:00:00 2001 From: Alexander Aksenov Date: Tue, 20 Sep 2022 12:26:58 +0000 Subject: [PATCH] add draft check for each re-usable workflow --- --- a/.github/workflows/ci-develop.yml +++ b/.github/workflows/ci-develop.yml @@ -3,7 +3,7 @@ on: pull_request: branches: [ 'develop' ] - types: [ opened, reopened, synchronize, ready_for_review ] + types: [ opened, reopened, synchronize, ready_for_review, converted_to_draft ] concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} @@ -12,23 +12,28 @@ jobs: yarn-test-dev: + if: github.event.pull_request.draft == false uses: ./.github/workflows/dev-build-tests_v2.yml + unit-test: + if: github.event.pull_request.draft == false uses: ./.github/workflows/unit-test_v2.yml canary: - if: ${{ contains( github.event.pull_request.labels.*.name, 'canary') }} + if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'canary')) }} uses: ./.github/workflows/canary.yml secrets: inherit # pass all secrets xcm: - if: ${{ contains( github.event.pull_request.labels.*.name, 'xcm') }} + if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'xcm')) }} uses: ./.github/workflows/xcm.yml secrets: inherit # pass all secrets codestyle: + if: github.event.pull_request.draft == false uses: ./.github/workflows/codestyle_v2.yml yarn_eslint: + if: github.event.pull_request.draft == false uses: ./.github/workflows/test_codestyle_v2.yml -- gitstuff