Skip to content

Commit f9ebfdb

Browse files
committed
Replace legacy git action with manual
1 parent 89b3eec commit f9ebfdb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ jobs:
225225
- container:
226226
version: "2.1.9"
227227
tag: ghcr.io/rspec/docker-ci:2.1.9
228-
post: git config --global --add safe.directory `pwd`
229228
env:
230229
RAILS_VERSION: '~> 4.2.0'
231230
- container:
@@ -240,14 +239,16 @@ jobs:
240239
RAILS_VERSION: '~> 4.2.0'
241240

242241
env:
243-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
244242
LEGACY_CI: true
245243
JRUBY_OPTS: ${{ matrix.container.jruby_opts || '--dev' }}
246244
RAILS_VERSION: ${{ matrix.env.RAILS_VERSION }}
247245
steps:
248-
- uses: actions/checkout@v3
246+
- run: git config --global --add safe.directory $GITHUB_WORKSPACE
247+
- run: git init $GITHUB_WORKSPACE
248+
- run: git remote add origin https://github.com/rspec/rspec-activemodel-mocks
249+
- run: git config --local gc.auto 0
250+
- run: git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +$GITHUB_SHA:$GITHUB_REF
251+
- run: git checkout --progress --force $GITHUB_REF
249252
- run: apt-get install libsqlite3-dev
250-
- run: ${{ matrix.container.pre }}
251253
- run: script/legacy_setup.sh
252-
- run: ${{ matrix.container.post }}
253254
- run: script/run_build

0 commit comments

Comments
 (0)