Skip to content

Commit

Permalink
remove checks
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
M. Fatih Cırıt committed Jun 13, 2024
1 parent 4c2a1c3 commit e6eac32
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/make-sure-label-is-present.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6eac32

Please sign in to comment.