mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-02 10:23:47 +00:00
20 lines
527 B
YAML
20 lines
527 B
YAML
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
|