diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-01-11 16:24:16 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2020-01-30 13:35:17 +0900 |
commit | 504b082f364e35516b2727c11713c28b684b5af0 (patch) | |
tree | 27f28edec2a4c23567aee0e10e94a79b48d0e65e /.github/workflows/mjit.yml | |
parent | 5dc82455aef4a42817208e11fbfbcdc1351f0734 (diff) |
Add branch option to checkout on push
Diffstat (limited to '.github/workflows/mjit.yml')
-rw-r--r-- | .github/workflows/mjit.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 540dbb7354..e7730506d2 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -24,7 +24,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 |