Files
mod-playerbots/.github/workflows/check_pr_source.yml
kadeshar 6ed3f24ecb Enforce test fix (#2122)
CI/CD PR

---------

Co-authored-by: Crow <pengchengw@me.com>
2026-02-07 07:34:15 -08:00

22 lines
605 B
YAML

name: Enforce test-staging → master
on:
pull_request:
branches:
- master
- test-staging
jobs:
require-test-staging:
runs-on: ubuntu-22.04
if: github.event.pull_request.base.ref == 'master'
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