From 647824fb07993e5fb5e7da717e2d4a78ec572361 Mon Sep 17 00:00:00 2001 From: Dave-Barcelo Date: Wed, 10 Jan 2024 11:16:11 -0500 Subject: [PATCH] Fixing logic in check for release. --- .github/workflows/check-for-release-label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-for-release-label.yml b/.github/workflows/check-for-release-label.yml index fb44c01d..8df587d7 100644 --- a/.github/workflows/check-for-release-label.yml +++ b/.github/workflows/check-for-release-label.yml @@ -20,5 +20,5 @@ jobs: - name: Fail if label does not exist, or skip if release/skip label exists #if: ${{ ! ( contains(github.event.pull_request.labels.*.name, 'release/patch') || contains(github.event.pull_request.labels.*.name, 'release/minor') || contains(github.event.pull_request.labels.*.name, 'release/major') || contains(github.event.pull_request.labels.*.name, 'release/skip') ) }} - if: ${{ ( steps.release-label.outputs.level == null ) || ( ! contains(github.event.pull_request.labels.*.name, 'release/skip') ) }} + if: ${{ ( ! contains(github.event.pull_request.labels.*.name, 'release/skip') ) || ( steps.release-label.outputs.level == null ) }} run: echo "Please label your PR with a release label" && exit 1 \ No newline at end of file