git.delta.rocks / unique-network / refs/commits / d6b2f4ba68a9

difftreelog

add draft check for each re-usable workflow

Alexander Aksenov2022-09-20parent: #2f6a65e.patch.diff
in: master

1 file changed

modified.github/workflows/ci-develop.ymldiffbeforeafterboth
3on:3on:
4 pull_request:4 pull_request:
5 branches: [ 'develop' ]5 branches: [ 'develop' ]
6 types: [ opened, reopened, synchronize, ready_for_review ]6 types: [ opened, reopened, synchronize, ready_for_review, converted_to_draft ]
77
8concurrency:8concurrency:
9 group: ${{ github.workflow }}-${{ github.head_ref }}9 group: ${{ github.workflow }}-${{ github.head_ref }}
12jobs:12jobs:
1313
14 yarn-test-dev:14 yarn-test-dev:
15 if: github.event.pull_request.draft == false
15 uses: ./.github/workflows/dev-build-tests_v2.yml16 uses: ./.github/workflows/dev-build-tests_v2.yml
17
1618
17 unit-test:19 unit-test:
20 if: github.event.pull_request.draft == false
18 uses: ./.github/workflows/unit-test_v2.yml21 uses: ./.github/workflows/unit-test_v2.yml
1922
20 canary:23 canary:
21 if: ${{ contains( github.event.pull_request.labels.*.name, 'canary') }}24 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'canary')) }}
22 uses: ./.github/workflows/canary.yml25 uses: ./.github/workflows/canary.yml
23 secrets: inherit # pass all secrets26 secrets: inherit # pass all secrets
2427
25 xcm:28 xcm:
26 if: ${{ contains( github.event.pull_request.labels.*.name, 'xcm') }}29 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'xcm')) }}
27 uses: ./.github/workflows/xcm.yml30 uses: ./.github/workflows/xcm.yml
28 secrets: inherit # pass all secrets31 secrets: inherit # pass all secrets
2932
30 codestyle:33 codestyle:
34 if: github.event.pull_request.draft == false
31 uses: ./.github/workflows/codestyle_v2.yml35 uses: ./.github/workflows/codestyle_v2.yml
32 36
33 yarn_eslint:37 yarn_eslint:
38 if: github.event.pull_request.draft == false
34 uses: ./.github/workflows/test_codestyle_v2.yml39 uses: ./.github/workflows/test_codestyle_v2.yml
3540