Skip to content

Commit

Permalink
fix run
Browse files Browse the repository at this point in the history
  • Loading branch information
dimxy committed Dec 16, 2024
1 parent d21e74e commit b2eeba2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ jobs:
- name: Check PR labels
env:
LABEL_NAMES: ${{ toJson(github.event.pull_request.labels.*.name) }}
echo "labels sum:"
echo contains(env.LABEL_NAMES, 'under review') + contains(env.LABEL_NAMES, 'in progress')
if: (contains(env.LABEL_NAMES, 'under review') + contains(env.LABEL_NAMES, 'in progress')) != 1
run: |
echo "PR must have "exactly one" of these labels: ['under review', 'in progress']."
exit 1
echo "labels sum"
echo contains(env.LABEL_NAMES, 'under review') + contains(env.LABEL_NAMES, 'in progress')
if: (contains(env.LABEL_NAMES, 'under review') + contains(env.LABEL_NAMES, 'in progress')) != 1
run: |
echo "PR must have "exactly one" of these labels: ['under review', 'in progress']."
exit 1

0 comments on commit b2eeba2

Please sign in to comment.