add header img to README #7
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: Only allow PR to main from dev | |
| on: | |
| pull_request_target: | |
| types: | |
| - opened | |
| branches: | |
| - 'main' | |
| jobs: | |
| check_branch: | |
| if: github.head_ref != 'dev' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Close Pull Request | |
| # You may pin to the exact commit or the version. | |
| # uses: superbrothers/close-pull-request@941c41e49ced0c13047ed30146e82bd762e907a9 | |
| uses: superbrothers/close-pull-request@v3.0.0 | |
| with: | |
| # Post a issue comment just before closing a pull request. | |
| comment: Only dev can merge into main. Please submit your PR to the dev branch instead. | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |