1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add a quick job to be used for branch protection

This commit is contained in:
Takashi Kokubun 2019-08-12 23:36:42 +09:00
parent 8d302c914c
commit edd2538268
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

15
.github/workflows/check_branch.yml vendored Normal file
View file

@ -0,0 +1,15 @@
# 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 }}