Files
self/.github/workflows/block-non-dev-to-main.yml
2025-10-10 13:44:41 -07:00

17 lines
350 B
YAML

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