Merge pull request #986 from Hestia-Homes/feature/match-on-lmk

protecting pushes to dev
This commit is contained in:
KhalimCK 2026-05-12 12:22:43 +01:00 committed by GitHub
commit ccf8c34aae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

17
.github/workflows/protect_releases.yml vendored Normal file
View 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