Promote stale pending user-input restart fix to production #1
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: Production Source Guard | |
| on: | |
| pull_request: | |
| branches: | |
| - production | |
| jobs: | |
| require-main-source: | |
| name: Require main as PR source | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Validate source branch | |
| run: | | |
| if [ "${{ github.head_ref }}" != "main" ]; then | |
| echo "Production promotions must come from main; received '${{ github.head_ref }}'." >&2 | |
| exit 1 | |
| fi |