From e6eac32b045b6fd772b1cd8ead6f1fc609d6553e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Thu, 13 Jun 2024 18:21:26 +0300 Subject: [PATCH] remove checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- .../workflows/make-sure-label-is-present.yaml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.github/workflows/make-sure-label-is-present.yaml b/.github/workflows/make-sure-label-is-present.yaml index d2676e60..d7305344 100644 --- a/.github/workflows/make-sure-label-is-present.yaml +++ b/.github/workflows/make-sure-label-is-present.yaml @@ -16,25 +16,9 @@ jobs: outputs: result: ${{ steps.make-sure-label-is-present.outputs.result }} steps: - - name: Check if new label is input label - id: check-if-new-label-is-input-label - if: github.event.label.name == inputs.label - run: | - echo "new_label_is_input_label=true" >> $GITHUB_OUTPUT - shell: bash - - - name: Skip if new label is not input label - if: steps.check-if-new-label-is-input-label.outputs.new_label_is_input_label != 'true' - run: | - echo "Skipping execution since a different label '${{ github.event.label.name }}' is added." - echo "result=false" >> $GITHUB_OUTPUT - shell: bash - - name: Check if label is present id: make-sure-label-is-present - if: | - (contains(github.event.pull_request.labels.*.name, inputs.label) && - steps.check-if-new-label-is-input-label.outputs.new_label_is_input_label == 'true') + if: contains(github.event.pull_request.labels.*.name, inputs.label) run: | echo "result=true" >> $GITHUB_OUTPUT shell: bash