diff --git a/.github/workflows/check-for-release-label.yml b/.github/workflows/check-for-release-label.yml index 15ffe2f0..ba2549e4 100644 --- a/.github/workflows/check-for-release-label.yml +++ b/.github/workflows/check-for-release-label.yml @@ -14,11 +14,8 @@ jobs: uses: actions-ecosystem/action-release-label@v1.2.0 id: release-label - #- run: echo "Release labels has skip: ${{ github.event.pull_request.labels }}" - - run: echo "Release level is ${{ steps.release-label.outputs.level }}" - 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: ${{ ( ! 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