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:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
@@ -11,8 +12,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Enforce only staging → main
|
- name: Enforce only staging → main
|
||||||
run: |
|
run: |
|
||||||
echo "head_ref: ${{ github.head_ref }}"
|
|
||||||
echo "base_ref: ${{ github.base_ref }}"
|
|
||||||
if [[ "${{ github.head_ref }}" != "staging" ]]; then
|
if [[ "${{ github.head_ref }}" != "staging" ]]; then
|
||||||
echo "ERROR: Only 'staging' branch may create PRs into 'main'!"
|
echo "ERROR: Only 'staging' branch may create PRs into 'main'!"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user