Files
self/.github/workflows/block-non-dev-to-main.yml
2025-06-22 18:28:50 +02:00

17 lines
334 B
YAML

name: Block non-dev PRs to main
on:
pull_request:
branches: [main]
jobs:
check-source:
runs-on: ubuntu-latest
steps:
- name: Block PRs not from dev
run: |
if [[ "${{ github.head_ref }}" != "dev" ]]; then
echo "You can only merge from dev to main."
exit 1
fi