Skip to content

Commit

Permalink
fix string label 39
Browse files Browse the repository at this point in the history
  • Loading branch information
hugtalbot committed Aug 4, 2023
1 parent e493f79 commit 8ff0c94
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/label-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,21 @@ jobs:
run: |
env | grep GITHUB_PR_LABEL || true
- run: |
echo "hasValidLabels=false" >> "$GITHUB_ENV"
echo "hasValidLabels=true" >> "$GITHUB_ENV"
if: |
(!contains(steps.pr-labels.outputs.labels, ' enhancement '))
(contains(steps.pr-labels.outputs.labels, 'enhancement') ||
contains(steps.pr-labels.outputs.labels, 'deprecated') ||
contains(steps.pr-labels.outputs.labels, 'refactoring') ||
contains(steps.pr-labels.outputs.labels, 'pr: clean') ||
contains(steps.pr-labels.outputs.labels, 'pr: breaking') ||
contains(steps.pr-labels.outputs.labels, 'pr: new feature') ||
contains(steps.pr-labels.outputs.labels, 'pr: fix') ||
contains(steps.pr-labels.outputs.labels, 'pr: test') ||
)
- name: Comment if missing labels
id: pr_comment
if: ${{ steps.pr_check_label.outputs.hasValidLabels == false }}
if: (!${{ steps.pr_check_label.outputs.hasValidLabels == true }})
uses: actions/github-script@v4
with:
script: |
Expand Down

0 comments on commit 8ff0c94

Please sign in to comment.