This commit is contained in:
Moritz Utcke
2025-06-11 13:38:54 -05:00
parent 6894468e58
commit 50f36dbc6c

View File

@@ -2,6 +2,7 @@ name: Enforce PR Source
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- main
@@ -11,8 +12,6 @@ jobs:
steps:
- name: Enforce only staging → main
run: |
echo "head_ref: ${{ github.head_ref }}"
echo "base_ref: ${{ github.base_ref }}"
if [[ "${{ github.head_ref }}" != "staging" ]]; then
echo "ERROR: Only 'staging' branch may create PRs into 'main'!"
exit 1