Release v5.1.3 #29
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: Enforce main PR source | |
| on: | |
| pull_request: | |
| branches: [main] | |
| types: [opened, edited, reopened, synchronize] | |
| jobs: | |
| check-source-branch: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Require head branch to be develop | |
| run: | | |
| if [ "${{ github.head_ref }}" != "develop" ]; then | |
| echo "::error::PRs into main must come from develop. Got: ${{ github.head_ref }}" | |
| exit 1 | |
| fi | |
| echo "OK: PR source is develop" |