Skip to content

Commit

Permalink
revert the enforce label logic (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeebru authored Mar 22, 2024
1 parent 4faa0f2 commit bec7de8
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/enforce-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,12 @@ on:

jobs:
enforce-label:
if: ${{ contains(github.event.*.labels.*.name, 'hold') || contains(github.event.*.labels.*.name, 'needs-qa') }}
name: Enforce label
runs-on: ubuntu-22.04

steps:
- name: Check for label
env:
LABEL_HOLD: ${{ contains(github.event.*.labels.*.name, 'hold') }}
LABEL_NEEDS_QA: ${{ contains(github.event.*.labels.*.name, 'needs-qa') }}
run: |
if [[ "$LABEL_HOLD" = "true" ]] || [[ "$LABEL_NEEDS_QA" = "true" ]]; then
echo "PRs with the hold or needs-qa labels cannot be merged"
echo "### :x: PRs with the hold or needs-qa labels cannot be merged" >> $GITHUB_STEP_SUMMARY
exit 1
fi
echo "PRs with the hold or needs-qa labels cannot be merged"
echo "### :x: PRs with the hold or needs-qa labels cannot be merged" >> $GITHUB_STEP_SUMMARY
exit 1

0 comments on commit bec7de8

Please sign in to comment.