From e783d8848d8aeb3f19b8e613efeb0bedec5f6881 Mon Sep 17 00:00:00 2001 From: Andrew Hlynskyi Date: Fri, 19 May 2023 18:04:53 +0300 Subject: [PATCH] cicd: don't start release on draft PRs --- .github/workflows/CICD.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 941cec2a..90ac3a94 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -68,7 +68,8 @@ jobs: needs: [init, fast_checks, full_checks, min_version, build, sanitize] if: > github.event.pull_request.head.repo.full_name == github.repository && - startsWith(github.head_ref, 'release/v') + startsWith(github.head_ref, 'release/v') && + !github.event.pull_request.draft uses: ./.github/workflows/release.yml with: ref: ${{ needs.init.outputs.ref }}