mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Merge branch 'main' into feature/magicplan-trigger
This commit is contained in:
commit
a05dfd38c7
1 changed files with 17 additions and 0 deletions
17
.github/workflows/protect_releases.yml
vendored
Normal file
17
.github/workflows/protect_releases.yml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
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
|
||||||
Loading…
Add table
Reference in a new issue