Workflow
This commit is contained in:
3
.github/workflows/enforce-pr-source.yml
vendored
3
.github/workflows/enforce-pr-source.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user