Skip to content

Dev -> Main: 0.7.4b #85

Dev -> Main: 0.7.4b

Dev -> Main: 0.7.4b #85

name: Ensure only `dev` can merge into `main`
on:
pull_request:
types:
- opened
- reopened
- synchronize
- edited
jobs:
check-branches:
runs-on: ubuntu-latest
steps:
- name: Check branches
run: |
if [ ${{ github.head_ref }} != "dev" ] && [ ${{ github.base_ref }} == "main" ]; then
echo "Merge requests to main branch are only allowed from dev branch."
exit 1
fi