v4.3.1 #24
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: check_branch | |
on: | |
pull_request_target: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
wrong_branch: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.head.repo.fork || github.head_ref != 'dev' }} | |
steps: | |
- uses: superbrothers/close-pull-request@v3 | |
with: | |
comment: Please re-open this PR against the dev branch. For more information, consult CONTRIBUTING.md. | |
- run: echo PR against master that is not based on dev && exit 1 | |