Skip to content

Revert accidental OneNote rollout from Development #1046

Revert accidental OneNote rollout from Development

Revert accidental OneNote rollout from Development #1046

name: Enforce Branch Protection Flow (Development -> Staging -> Main)
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
enforce-branch-flow:
runs-on: ubuntu-latest
steps:
- name: Fail if PR into Staging does not come from Development
if: >
github.event.pull_request.base.ref == 'Staging' &&
github.event.pull_request.head.ref != 'Development'
run: |
echo "::error ::Pull requests into 'Staging' must originate from branch 'Development'."
exit 1
- name: Fail if PR into main does not come from Staging
if: >
github.event.pull_request.base.ref == 'main' &&
github.event.pull_request.head.ref != 'Staging'
run: |
echo "::error ::Pull requests into 'main' must originate from branch 'Staging'."
exit 1
- name: Branch flow validated
run: echo "✅ Branch flow validation passed."