blob: 1dd5872e748e8d73b1989bc1e7692a594ca9a7ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Protected branches:
# * master: Synchronized between cgit and GitHub bidirectionally [experimental]
# * other branches: Only writable from cgit.
#
# Bidirectional sync is still WIP, so "write" is not permitted to ruby-commiters
# team yet. Still under testing.
#
# And this is enabled for "other branches" to prevent us from merging them.
# See also: https://bugs.ruby-lang.org/issues/16094
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 }}
|