Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/Check-PRsource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
- reopened
- synchronize
- edited

permissions: {}

jobs:
check-branches:
runs-on: ubuntu-latest
steps:
- name: Check branches
- name: Reject non-dev pull requests to main
if: github.base_ref == 'main' && github.head_ref != 'dev'
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
echo "Merge requests to main branch are only allowed from dev branch."
exit 1
Loading