mirror of
https://github.com/discourse/discourse.git
synced 2025-02-13 19:52:46 +08:00
15 lines
442 B
YAML
15 lines
442 B
YAML
![]() |
name: PR base branch check
|
||
|
on:
|
||
|
pull_request:
|
||
|
jobs:
|
||
|
check-branches:
|
||
|
if: github.event_name == 'pull_request' && github.repository == 'discourse/discourse-private-mirror'
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Check branches
|
||
|
run: |
|
||
|
if [ ${{ github.base_ref }} == "tests-passed" ]; then
|
||
|
echo "PR requests to tests-passed branch are not allowed. Please use main."
|
||
|
exit 1
|
||
|
fi
|