summaryrefslogtreecommitdiff
path: root/.github/workflows/macos.yml
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-01-11 16:24:16 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-01-11 16:24:16 +0900
commite62aead26909e83f2c8b940186047f0a88b9f2d6 (patch)
treeb06db3324cd1a0114835716a42533af73bed3805 /.github/workflows/macos.yml
parent7584853cfed9eaeaf6e932578362db0ffa74bcac (diff)
Add branch option to checkout on push
Diffstat (limited to '.github/workflows/macos.yml')
-rw-r--r--.github/workflows/macos.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 5cbcd445aa..d86f03845f 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -22,7 +22,7 @@ jobs:
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
- name: Checkout ruby
run: |
- git clone --single-branch --shallow-since=yesterday https://github.com/${{ github.repository }} src
+ git clone --single-branch --shallow-since=yesterday --branch=${GITHUB_REF#refs/heads/} https://github.com/${{ github.repository }} src
git -C src reset --hard "$GITHUB_SHA"
if: github.event_name == 'push'
- name: Checkout a pull request