mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
17 lines
No EOL
347 B
YAML
17 lines
No EOL
347 B
YAML
name: Restrict PR source
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
|
|
jobs:
|
|
check-source-branch:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Fail if PR is not from main
|
|
run: |
|
|
if [[ "${{ github.head_ref }}" != "main" ]]; then
|
|
echo "Only PRs from main are allowed into dev"
|
|
exit 1
|
|
fi |