diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f68595a70..20c0eeb71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,25 +125,25 @@ jobs: REPO_URL="https://gitcode.com/Lipen/arkanalyzer" DEST_DIR="arkanalyzer" MAX_RETRIES=10 - RETRY_DELAY=3 # Delay between retries in seconds - BRANCH="neo/2025-05-30b" - + RETRY_DELAY=3 # Delay between retries in seconds + BRANCH="neo/2025-06-16" + for ((i=1; i<=MAX_RETRIES; i++)); do git clone --depth=1 --branch $BRANCH $REPO_URL $DEST_DIR && break echo "Clone failed, retrying in $RETRY_DELAY seconds..." sleep "$RETRY_DELAY" done - + if [[ $i -gt $MAX_RETRIES ]]; then echo "Failed to clone the repository after $MAX_RETRIES attempts." exit 1 else echo "Repository cloned successfully." fi - + echo "ARKANALYZER_DIR=$(realpath $DEST_DIR)" >> $GITHUB_ENV cd $DEST_DIR - + npm install npm run build