Files
mod-playerbots/.github/workflows/check_pr_source.yml
kadeshar 935252fcfe Action trigger fix (#2180)
Maintenance PR unrelated with module itself
Modified action trigger to cover branch change
2026-03-06 07:58:47 -08:00

23 lines
656 B
YAML

name: Enforce test-staging → master
on:
pull_request:
types: [opened, synchronize, reopened, edited]
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