Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

vendor/bundle may not exist, handle it [contd.]

Markus Kahl430dc56d9808
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 15e0ef4772b..7b41d9581b2 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.