From 4f51bfee95625efafe23a736d6be5b0160865d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Wed, 12 Jun 2024 17:29:54 +0300 Subject: [PATCH] if space, noJson MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- .github/workflows/make-sure-label-is-present.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/make-sure-label-is-present.yaml b/.github/workflows/make-sure-label-is-present.yaml index 83f29309..63d6d6f8 100644 --- a/.github/workflows/make-sure-label-is-present.yaml +++ b/.github/workflows/make-sure-label-is-present.yaml @@ -18,13 +18,13 @@ jobs: steps: - name: Check if label exists id: make-sure-label-is-present - if: contains(toJson(github.event.pull_request.labels.*.name), '${{ inputs.label }}') + if: "contains(github.event.pull_request.labels.*.name, '${{ inputs.label }}')" run: | echo "result=true" >> $GITHUB_OUTPUT shell: bash - name: Fail the job - if: steps.make-sure-label-is-present.outputs.result != 'true' + if: "steps.make-sure-label-is-present.outputs.result != 'true'" run: | echo "Please add the label '${{ inputs.label }}' to run this workflow." echo "result=false" >> $GITHUB_OUTPUT