0
0
mirror of https://github.com/openwrt/luci.git synced 2025-01-18 12:32:08 +00:00
luci/.github/workflows/check_source_branch_is_not_master.yml
Paul Donald 048c39abdf house-keeping: PR template with submission checklist
also check PR source branch (head_ref) is not main/master
2024-01-30 01:27:30 +01:00

16 lines
415 B
YAML

name: Check PR source branch
on:
pull_request_target:
types: [opened, synchronize]
jobs:
check-source-branch-is-not-main-or-master:
runs-on: ubuntu-latest
if: contains(fromJSON('["main", "master"]'), github.head_ref)
# or github.event.pull_request.head.ref
steps:
- run: |
echo "Error: Pull requests should not be from your 'main' or 'master' branch. :("
exit 1