chore: enforce PRs — block direct pushes to main #1
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: Prevent Direct Pushes to Default Branch | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| block: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Block direct pushes | |
| run: | | |
| echo "🚫 Direct pushes to main are not allowed. Please open a Pull Request." | |
| exit 1 |