Skip to content

New release - Migrate Manager to ovhcloud.com #25200

New release - Migrate Manager to ovhcloud.com

New release - Migrate Manager to ovhcloud.com #25200

name: 'Check for Release Branch'
on:
pull_request:
types: [opened, edited, reopened, synchronize]
jobs:
check_branch:
runs-on: ubuntu-latest
steps:
- name: Check branch name
uses: actions/github-script@v6
if: github.base_ref == 'master'
with:
script: |
if(!context.payload.pull_request.head.ref.startsWith('release/') && context.payload.pull_request.head.ref !== 'develop' ) {
throw new Error(`Only "release/**" or "develop" branches can be merged to "master".`);
}