Skip to content

Commit

Permalink
chore(*): add pr status check to CI pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: caohe <caohe9603@gmail.com>
  • Loading branch information
caohe committed Apr 27, 2023
1 parent 7af5e61 commit 1f5fe1e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/status-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Status Check

on:
pull_request:
branches: [ main ]
types: [ opened, reopened, synchronize ]
label:
types: [created, deleted]

jobs:
status-check:
name: Status Check
runs-on: ubuntu-20.04
steps:
- name: Check if the PR is hold
if: contains(github.event.pull_request.labels.*.name, 'workflow/merge-hold')
run: echo 'This pull request is hold' && exit 1

0 comments on commit 1f5fe1e

Please sign in to comment.