Skip to content

Commit

Permalink
test
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 12, 2024
1 parent 174598a commit c2dcbbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/make-sure-label-is-present.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
outputs:
result: ${{ steps.make-sure-label-is-present.outputs.result }}
steps:
- name: Check if label exists
- name: Check if label is present
id: make-sure-label-is-present
if: contains(github.event.pull_request.labels.*.name, 'test-label')
if: contains(github.event.pull_request.labels.*.name, '${{ inputs.label }}')
run: |
echo "result=true" >> $GITHUB_OUTPUT
shell: bash

- name: Fail the job
- name: Skip if label is not present
if: steps.make-sure-label-is-present.outputs.result != 'true'
run: |
echo "Please add the label '${{ inputs.label }}' to run this workflow."
Expand Down

0 comments on commit c2dcbbe

Please sign in to comment.