Repository navigation
Revert accidental OneNote rollout from Development #1046
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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." |