Skip to content

Commit fcc3bd2

Browse files
committed
fix
1 parent 1d6ae8b commit fcc3bd2

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/cron_build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
path: dist
101101

102102
combine-artifacts:
103-
name: Combine artifacts for IDF ${{ inputs.idf_branch }}
103+
name: Combine artifacts and push changes for IDF ${{ inputs.idf_branch }}
104104
runs-on: ubuntu-latest
105105
needs: [check-if-needed, build-libs]
106106
if: |

tools/push-to-arduino.sh

+12-4
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,18 @@ if [ $AR_HAS_COMMIT == "0" ]; then
101101
exit 1
102102
fi
103103
else
104-
echo "Asset '$LIBS_ZIP_FILENAME' already exists."
104+
cd "$AR_ROOT"
105+
mkdir -p $AR_TOOLS
106+
107+
echo "Asset '$LIBS_ZIP_FILENAME' already exists. Downloading..."
108+
109+
curl -s -L -o "$LIBS_ZIP_FILENAME" "$IDF_LIBS_ZIP_URL"
110+
if [ $? -ne 0 ]; then
111+
echo "ERROR: Failed to download asset '$LIBS_ZIP_FILENAME'"
112+
exit 1
113+
fi
114+
115+
unzip -o "$LIBS_ZIP_FILENAME" -d "$AR_OUT/tools"
105116

106117
JSON_ASSET_ID=`github_release_asset_id "$AR_LIBS_REPO" "$LIBS_RELEASE_ID" "$LIBS_JSON_FILENAME"`
107118
if [ -z "$JSON_ASSET_ID" ]; then
@@ -114,9 +125,6 @@ if [ $AR_HAS_COMMIT == "0" ]; then
114125

115126
echo "JSON asset ID: $JSON_ASSET_ID"
116127
echo "Downloading JSON asset '$LIBS_JSON_FILENAME'..."
117-
118-
cd "$AR_ROOT"
119-
mkdir -p $AR_OUT
120128
curl -s -L -o "$AR_OUT/package_esp32_index.template.json" "$IDF_LIBS_JSON_URL"
121129
fi
122130
fi

0 commit comments

Comments
 (0)