ruby-changes:56973
From: Takashi <ko1@a...>
Date: Mon, 12 Aug 2019 23:46:06 +0900 (JST)
Subject: [ruby-changes:56973] Takashi Kokubun: edd2538268 (master): Add a quick job to be used for branch protection
https://git.ruby-lang.org/ruby.git/commit/?id=edd2538268 From edd25382687c840f10eec23d72fa08ebd3515fbf Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Mon, 12 Aug 2019 23:36:42 +0900 Subject: Add a quick job to be used for branch protection diff --git a/.github/workflows/check_branch.yml b/.github/workflows/check_branch.yml new file mode 100644 index 0000000..797e78e --- /dev/null +++ b/.github/workflows/check_branch.yml @@ -0,0 +1,15 @@ https://github.com/ruby/ruby/blob/trunk/.github/workflows/check_branch.yml#L1 +# 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 }} -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/