You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# `main` is the release branch: it receives merges from `dev` and nothing
# else. Branch protection matches on the base branch only and cannot constrain
# which branch a pull request comes from, so this check does it.
on:
pull_request:
branches: [main]
permissions: {}
jobs:
from-dev:
name: from-dev
runs-on: ubuntu-latest
steps:
- name: Head branch must be dev
env:
HEAD_REF: ${{ github.head_ref }}
run: |
if [ "$HEAD_REF" != "dev" ]; then
echo "::error::Pull requests into main must come from dev. This one comes from '$HEAD_REF'. Merge the work into dev first, then release dev into main."