From 769b8f0994e81072e5523f66c84dfff22e03419b Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Tue, 25 Feb 2025 09:46:48 +0000 Subject: [PATCH] vendor/bundle may not exist, handle it [contd.] --- .github/workflows/docker.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 15e0ef4772b6..7b41d9581b20 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -233,7 +233,11 @@ jobs: key: ${{ steps.restore-vendor-bundle.outputs.cache-primary-key }} - name: Restore pre-build vendor/bundle to prevent 2nd build from scratch during push run: | - rm -rf vendor/bundle && mv vendor/bundle.bak vendor/bundle + rm -rf vendor/bundle + + if [ -f vendor/bundle.bak ]; then + mv vendor/bundle.bak vendor/bundle + fi - name: Test # We only test the native container. If that fails the builds for the others # will be cancelled as well.