aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/mjit.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/mjit.yml')
-rw-r--r--.github/workflows/mjit.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml
index 898ea5613f..26533fa1b3 100644
--- a/.github/workflows/mjit.yml
+++ b/.github/workflows/mjit.yml
@@ -23,12 +23,12 @@ jobs:
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
- name: Checkout ruby/ruby
run: |
- git clone --depth=50 https://github.com/ruby/ruby src
+ git clone --single-branch --shallow-since=yesterday https://github.com/ruby/ruby src
git -C src reset --hard "$GITHUB_SHA"
if: github.event_name == 'push'
- name: Checkout a pull request
run: |
- git clone --depth=50 "--branch=$GITHUB_BRANCH" "https://github.com/${GITHUB_REPO}" src
+ git clone --single-branch --shallow-since=yesterday "--branch=$GITHUB_BRANCH" "https://github.com/${GITHUB_REPO}" src
git -C src reset --hard "$GITHUB_REV"
env:
GITHUB_REV: ${{ github.event.pull_request.head.sha }}