3 Commits

Author SHA1 Message Date
bashermens
6dec311e1f Update check_pr_source.yml 2026-02-01 22:41:24 +01:00
bashermens
8e316cd321 fix (#2099) 2026-02-01 22:26:07 +01:00
bashermens
cafb95e7bd Create check_pr_source.yml (#2098) 2026-02-01 22:21:57 +01:00

19
.github/workflows/check_pr_source.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Enforce test-staging → main
on:
pull_request:
branches:
- master
jobs:
require-test-staging:
runs-on: ubuntu-22.04
steps:
- name: Ensure PR source is test-staging
run: |
echo "Base: ${{ github.event.pull_request.base.ref }}"
echo "Head: ${{ github.event.pull_request.head.ref }}"
if [ "${{ github.event.pull_request.head.ref }}" != "test-staging" ]; then
echo "✖ Pull request must come from test-staging"
exit 1
fi