Skip to content

[ECO-2152] Segment REST and WS endpoints for dual load balancer schema #455

[ECO-2152] Segment REST and WS endpoints for dual load balancer schema

[ECO-2152] Segment REST and WS endpoints for dual load balancer schema #455

# yamllint disable rule:empty-lines rule:key-ordering
---
name: 'Production Branch Protection'
"on":
pull_request:
types:
- 'opened'
- 'reopened'
- 'synchronize'
- 'edited'
jobs:
production-branch-protection:
runs-on: 'ubuntu-latest'
steps:
- name: 'Check if the PR is targeting the production branch'
id: 'check_branch'
if: |
github.base_ref == 'production' && github.head_ref != 'main'
run: |
echo ERROR: You can only merge to the production branch from main.
exit 1
...