Release 149.0.0 #1233
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Check for PR labels that block merging' | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- labeled | |
- unlabeled | |
jobs: | |
ensure-blocking-pr-labels-absent: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: yarn | |
- name: Install dependencies | |
run: yarn --immutable | |
- name: Run command | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
if (context.payload.pull_request.labels.some((label) => label.name === 'DO-NOT-MERGE')) { | |
core.setFailed( | |
"PR cannot be merged because it contains the label 'DO-NOT-MERGE'." | |
); | |
} |