Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Add retry + checksum to Clojure install, remove continue-on-error (#70700)

github-automation-metabase0409c4a20b7e
diff --git a/.github/actions/prepare-backend/action.yml b/.github/actions/prepare-backend/action.yml
index c37d4176845..91d160258b1 100644
--- a/.github/actions/prepare-backend/action.yml
+++ b/.github/actions/prepare-backend/action.yml
@@ -19,10 +19,18 @@ runs:
distribution: "temurin"
- name: Install Clojure CLI
shell: bash
- continue-on-error: true
run: |
- curl -O https://download.clojure.org/install/linux-install-${{ inputs.clojure-version }}.sh &&
- sudo bash ./linux-install-${{ inputs.clojure-version }}.sh
+ for attempt in 1 2 3; do
+ curl --retry 3 --retry-delay 5 --fail -O https://download.clojure.org/install/linux-install-${{ inputs.clojure-version }}.sh \
+ && sudo bash ./linux-install-${{ inputs.clojure-version }}.sh \
+ && break
+ echo "::warning::Clojure install attempt $attempt failed, retrying in 10s..."
+ sleep 10
+ done
+ if ! clojure --version; then
+ echo "::error::Clojure CLI installation failed after 3 attempts"
+ exit 1
+ fi
- name: Get M2 cache key
uses: ./.github/actions/get-cache-keys