GitHub action test #2
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: Restrict Pull Requests | |
on: | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
restrict-prs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check target branch | |
if: github.event.pull_request.base.ref != 'dev' | |
run: | | |
echo "Pull requests can only be made to the 'dev' branch." | |
exit 1 |