diff --git a/.github/workflows/pr-label-check.yml b/.github/workflows/pr-label-check.yml index bcf245887..cee1d2003 100644 --- a/.github/workflows/pr-label-check.yml +++ b/.github/workflows/pr-label-check.yml @@ -16,11 +16,8 @@ permissions: jobs: do-not-merge: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - - run: | - if ${{ contains(github.event.pull_request.labels.*.name, 'do NOT merge!!!') }}; then - false - else - true - fi + # Remove `do-not-merge` label before merging + - if: ${{ ! contains(github.event.pull_request.labels.*.name, 'do NOT merge!!!') }} + run: exit 0