Skip to content

Commit 0e586c7

Browse files
committed
github workflow
1 parent 730e629 commit 0e586c7

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Enforce PRs targeting develop
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
check-source-branch:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Fail if PR targets main
12+
run: |
13+
if [[ "${{ github.head_ref }}" != "develop" ]]; then
14+
echo "Pull requests to 'main' are not allowed. Please target 'develop' instead."
15+
exit 1
16+
fi

0 commit comments

Comments
 (0)