Skip to content

Commit

Permalink
vendor/bundle may not exist, handle it [contd.]
Browse files Browse the repository at this point in the history
  • Loading branch information
machisuji committed Feb 25, 2025
1 parent c11c2d3 commit 430dc56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 430dc56

Please sign in to comment.