From 6c09badc372ceebd90b88bd62c474dd84528c69a Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Fri, 29 Nov 2024 00:12:06 +0000 Subject: [PATCH] Switch legacy builds to manual git --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8fd5baa..47bd831c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -133,7 +133,12 @@ jobs: JRUBY_OPTS: ${{ matrix.container.jruby_opts || '--dev' }} NO_COVERAGE: true steps: - - uses: actions/checkout@v3 + - run: git config --global --add safe.directory $GITHUB_WORKSPACE + - run: git init $GITHUB_WORKSPACE + - run: git remote add origin https://github.com/rspec/rspec-support + - run: git config --local gc.auto 0 + - run: git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +$GITHUB_SHA:$GITHUB_REF + - run: git checkout --progress --force $GITHUB_REF - run: ${{ matrix.container.pre }} - run: script/legacy_setup.sh - run: ${{ matrix.container.post }}