diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/coverage.yml | 4 | ||||
-rw-r--r-- | .github/workflows/doxygen.yml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 404c60608f..dafc734ba3 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -19,12 +19,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=1 https://github.com/ruby/ruby . && git reset --hard "$GITHUB_SHA" + run: git clone --depth=10 https://github.com/ruby/ruby . && git reset --hard "$GITHUB_SHA" env: GITHUB_SHA: ${{ github.sha }} if: github.event_name == 'schedule' - name: Checkout a pull request - run: git clone --depth=1 "--branch=$GITHUB_BRANCH" "https://github.com/${GITHUB_REPO}" . && git reset --hard "$GITHUB_REV" + run: git clone --depth=10 "--branch=$GITHUB_BRANCH" "https://github.com/${GITHUB_REPO}" . && git reset --hard "$GITHUB_REV" env: GITHUB_REV: ${{ github.event.pull_request.head.sha }} GITHUB_BRANCH: ${{ github.event.pull_request.head.ref }} diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml index c6b15f8f61..73937a2097 100644 --- a/.github/workflows/doxygen.yml +++ b/.github/workflows/doxygen.yml @@ -19,12 +19,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=1 https://github.com/ruby/ruby . && git reset --hard "$GITHUB_SHA" + run: git clone --depth=10 https://github.com/ruby/ruby . && git reset --hard "$GITHUB_SHA" env: GITHUB_SHA: ${{ github.sha }} if: github.event_name == 'schedule' - name: Checkout a pull request - run: git clone --depth=1 "--branch=$GITHUB_BRANCH" "https://github.com/${GITHUB_REPO}" . && git reset --hard "$GITHUB_REV" + run: git clone --depth=10 "--branch=$GITHUB_BRANCH" "https://github.com/${GITHUB_REPO}" . && git reset --hard "$GITHUB_REV" env: GITHUB_REV: ${{ github.event.pull_request.head.sha }} GITHUB_BRANCH: ${{ github.event.pull_request.head.ref }} |