Repository navigation
feat: support ingress subpaths #140
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
| --- | ||
|
Check warning on line 1 in .github/workflows/prevent-prs-to-main.yml
|
||
| name: Prevent external Pull Request to 'main' branch | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| logLevel: | ||
| description: 'Log level' | ||
| required: true | ||
| default: 'warning' | ||
| type: choice | ||
| options: | ||
| - info | ||
| - warning | ||
| - debug | ||
| pull_request_target: | ||
| types: | ||
| - opened | ||
| - reopened | ||
| - synchronize | ||
| - edited | ||
| jobs: | ||
| check-branches: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check Pull Reques base and target branches | ||
| run: | | ||
| if [ ${{ github.head_ref }} != "develop" ] && [ ${{ github.base_ref }} == "main" ]; then | ||
| echo "Pull Requests to 'main' branch are only allowed from 'develop' branch." | ||
| echo "You can make your Pull Requests to 'develop'." | ||
| exit 1 | ||
| fi | ||