2022-03-30 20:57:49 +08:00
|
|
|
name: Do Not Merge
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [synchronize, opened, reopened, labeled, unlabeled]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
do-not-merge:
|
2023-05-17 02:20:15 +08:00
|
|
|
if: ${{ contains(github.event.*.labels.*.name, 'DNM') ||
|
2024-01-08 20:12:54 +08:00
|
|
|
contains(github.event.*.labels.*.name, 'TSC') ||
|
|
|
|
contains(github.event.*.labels.*.name, 'Architecture Review') ||
|
|
|
|
contains(github.event.*.labels.*.name, 'dev-review') }}
|
2022-03-30 20:57:49 +08:00
|
|
|
name: Prevent Merging
|
2023-03-18 18:11:12 +08:00
|
|
|
runs-on: ubuntu-22.04
|
2022-03-30 20:57:49 +08:00
|
|
|
steps:
|
|
|
|
- name: Check for label
|
|
|
|
run: |
|
2024-01-08 20:12:54 +08:00
|
|
|
echo "Pull request is labeled as 'DNM', 'TSC', 'Architecture Review' or 'dev-review'."
|
|
|
|
echo "This workflow fails so that the pull request cannot be merged."
|
2022-03-30 20:57:49 +08:00
|
|
|
exit 1
|