Skip to content

Commit 4f8f613

Browse files
authored
Create main.yml
1 parent c2cd9d1 commit 4f8f613

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Check PR source branch
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
check-branch:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Verify PR source
13+
run: |
14+
if [ "${{ github.head_ref }}" != "develop" ]; then
15+
echo "PRs to main must come from develop"
16+
exit 1
17+
fi

0 commit comments

Comments
 (0)