Fix frontend ada compliance #34
This file contains 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 Dev to Main PRs | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
restrict-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check PR Base Branch | |
run: | | |
if [ "${{ github.event.pull_request.head.ref }}" != "dev" ]; then | |
echo "Pull requests to main are only allowed from dev branch." | |
exit 1 | |
fi |