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