Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Enforce PR Source Branch

on:
pull_request:
branches:
- master

jobs:
check_branch:
runs-on: ubuntu-latest
steps:
- name: Fail if PR is not from dev
run: |
if [[ "${{ github.head_ref }}" != "development" ]]; then
echo "Pull requests to main must come from the dev branch."
exit 1
fi
Loading