Skip to content

Commit

Permalink
do not allow PRs into master branch
Browse files Browse the repository at this point in the history
Signed-off-by: Ming Xiao <[email protected]>
  • Loading branch information
jpalermo authored and mingxiao committed Sep 3, 2024
1 parent a546b52 commit 500383c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/protect-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Master Branch Protection

on:
pull_request:
branches:
- master

jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Check branch
run: |
echo "Error: Pull request against master is prohibited"
exit 1

0 comments on commit 500383c

Please sign in to comment.