difftreelog
fix as per documentation
in: master
3 files changed
.github/workflows/ci-develop.ymldiffbeforeafterboth12jobs:12jobs:131314 yarn-test-dev:14 yarn-test-dev:15 if: github.event.pull_request.draft == false15 if: ${{ github.event.pull_request.draft == 'false' }}16 uses: ./.github/workflows/dev-build-tests_v2.yml16 uses: ./.github/workflows/dev-build-tests_v2.yml171718 unit-test:18 unit-test:19 if: github.event.pull_request.draft == false19 if: ${{ github.event.pull_request.draft == 'false' }}20 uses: ./.github/workflows/unit-test_v2.yml20 uses: ./.github/workflows/unit-test_v2.yml212122 forkless:22 forkless:23 if: contains( github.event.pull_request.labels.*.name, 'forkless') 23 if: ${{ contains( github.event.pull_request.labels.*.name, 'forkless') }}24 uses: ./.github/workflows/forkless.yml24 uses: ./.github/workflows/forkless.yml252526 canary:26 canary:27 if: contains( github.event.pull_request.labels.*.name, 'canary')27 if: ${{ contains( github.event.pull_request.labels.*.name, 'canary') }}28 uses: ./.github/workflows/canary.yml28 uses: ./.github/workflows/canary.yml29 secrets: inherit # pass all secrets29 secrets: inherit # pass all secrets3030313132 xcm:32 xcm:33 if: contains( github.event.pull_request.labels.*.name, 'xcm')33 if: ${{ contains( github.event.pull_request.labels.*.name, 'xcm') }}34 uses: ./.github/workflows/xcm.yml34 uses: ./.github/workflows/xcm.yml35 secrets: inherit # pass all secrets35 secrets: inherit # pass all secrets3636.github/workflows/ci-master.ymldiffbeforeafterboth12jobs:12jobs:131314 unit-test:14 unit-test:15 if: github.event.pull_request.draft != true15 if: ${{ github.event.pull_request.draft != 'true' }}16 uses: ./.github/workflows/unit-test_v2.yml16 uses: ./.github/workflows/unit-test_v2.yml171718 node-only-update:18 node-only-update:19 if: github.event.pull_request.draft == false19 if: ${{ github.event.pull_request.draft == 'false' }}20 uses: ./.github/workflows/node-only-update_v2.yml20 uses: ./.github/workflows/node-only-update_v2.yml212122 forkless:22 forkless:23 if: contains( github.event.pull_request.labels.*.name, 'forkless')23 if: ${{ contains( github.event.pull_request.labels.*.name, 'forkless') }}24 uses: ./.github/workflows/forkless.yml24 uses: ./.github/workflows/forkless.yml252526 canary:26 canary:27 if: contains( github.event.pull_request.labels.*.name, 'canary')27 if: ${{ contains( github.event.pull_request.labels.*.name, 'canary') }}28 uses: ./.github/workflows/canary.yml28 uses: ./.github/workflows/canary.yml29 secrets: inherit # pass all secrets29 secrets: inherit # pass all secrets303031 xcm:31 xcm:32 if: contains( github.event.pull_request.labels.*.name, 'xcm')32 if: ${{ contains( github.event.pull_request.labels.*.name, 'xcm') }}33 uses: ./.github/workflows/xcm.yml33 uses: ./.github/workflows/xcm.yml34 secrets: inherit # pass all secrets34 secrets: inherit # pass all secrets353536 codestyle:36 codestyle:37 if: github.event.pull_request.draft == false37 if: ${{ github.event.pull_request.draft == 'false' }}38 uses: ./.github/workflows/codestyle_v2.yml38 uses: ./.github/workflows/codestyle_v2.yml.github/workflows/codestyle_v2.ymldiffbeforeafterboth8 runs-on: self-hosted-ci8 runs-on: self-hosted-ci9910 steps:10 steps:11 - name: Skip if pull request is in Draft12 # `if: github.event.pull_request.draft == true` should be kept here, at13 # the step level, rather than at the job level. The latter is not14 # recommended because when the PR is moved from "Draft" to "Ready to15 # review" the workflow will immediately be passing (since it was skipped),16 # even though it hasn't actually ran, since it takes a few seconds for17 # the workflow to start. This is also disclosed in:18 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1719 # That scenario would open an opportunity for the check to be bypassed:20 # 1. Get your PR approved21 # 2. Move it to Draft22 # 3. Push whatever commits you want23 # 4. Move it to "Ready for review"; now the workflow is passing (it was24 # skipped) and "Check reviews" is also passing (it won't be updated25 # until the workflow is finished)26 if: github.event.pull_request.draft == true27 run: exit 12829 - uses: actions/checkout@v311 - uses: actions/checkout@v330 - name: Install latest nightly12 - name: Install latest nightly46 runs-on: self-hosted-ci28 runs-on: self-hosted-ci47 29 48 steps:30 steps:49 - name: Skip if pull request is in Draft31 50 # `if: github.event.pull_request.draft == true` should be kept here, at51 # the step level, rather than at the job level. The latter is not52 # recommended because when the PR is moved from "Draft" to "Ready to53 # review" the workflow will immediately be passing (since it was skipped),54 # even though it hasn't actually ran, since it takes a few seconds for55 # the workflow to start. This is also disclosed in:56 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1757 # That scenario would open an opportunity for the check to be bypassed:58 # 1. Get your PR approved59 # 2. Move it to Draft60 # 3. Push whatever commits you want61 # 4. Move it to "Ready for review"; now the workflow is passing (it was62 # skipped) and "Check reviews" is also passing (it won't be updated63 # until the workflow is finished)64 if: github.event.pull_request.draft == true65 run: exit 166 67 - uses: actions/checkout@v332 - uses: actions/checkout@v368 - name: Install substrate dependencies33 - name: Install substrate dependencies