Skip to content

Commit 2b61924

Browse files
authored
Create check-branch.yml
1 parent 29e7b2d commit 2b61924

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/check-branch.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 'Check Branch'
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
check_branch:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Check branch
11+
if: github.base_ref == 'main' && github.head_ref != 'next'
12+
run: |
13+
echo "ERROR: You can only merge to main from next."
14+
exit 1

0 commit comments

Comments
 (0)