Skip to content

Fix stable branch references after migration to main #1877

Fix stable branch references after migration to main

Fix stable branch references after migration to main #1877

Workflow file for this run

name: Check pull request source branch

Check warning on line 1 in .github/workflows/Check-PRsource.yml

View workflow run for this annotation

GitHub Actions / Check pull request source branch

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
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