From d10629f43eb990d9bbfecdfeb16b1c1d149a6b71 Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Fri, 8 May 2020 18:14:28 +0200 Subject: [PATCH] ci: try to simplify ab setup --- .github/workflows/assets.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml index 1d2b52f18b..f3dec1cf15 100644 --- a/.github/workflows/assets.yml +++ b/.github/workflows/assets.yml @@ -24,12 +24,15 @@ jobs: with: submodules: recursive - run: git submodule absorbgitdirs - - run: | - mkdir -p ~/.ssh - echo "${{ secrets.id_rsa_ab }}" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -t rsa github.com - git clone git@github.com:lichess-org/ab.git && echo "::set-env name=LILA_AB_FILE::$PWD/ab/src/ab.js" || true + - uses: actions/checkout@v2 + with: + repository: lichess-org/ab + ssh-key: ${{ secrets.id_rsa_ab }} + path: ab + continue-on-error: true + id: ab + - run: echo "::set-env name=LILA_AB_FILE::$GITHUB_WORKSPACE/ab/src/ab.js" + if: steps.ab.outcome == 'success' - uses: actions/cache@v1 with: path: ~/.cache/yarn