blob: 89561a713b767ac7bd92ca0bb16e9e6e319af035 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# This is enabled on protected branches except master.
# This will be used to achieve [Misc #16094] later.
name: check_branch
on: [pull_request]
jobs:
master:
runs-on: ubuntu-latest
steps:
- name: Check if branch is master
run: |
if [ "$BASE_REF" != master ]; then
echo "Only master branch accepts a pull request, but it's '$BASE_REF'."
exit 1
fi
env:
BASE_REF: ${{ github.base_ref }}
|