diff --git a/.github/workflows/release-to-publish.yml b/.github/workflows/release-to-publish.yml index b4f09fa59..cf289f047 100644 --- a/.github/workflows/release-to-publish.yml +++ b/.github/workflows/release-to-publish.yml @@ -36,6 +36,10 @@ jobs: run: shell: bash steps: + - uses: actions/checkout@v2 + with: + submodules: false + fetch-depth: 0 - name: Deploy updated JSON run: | bash ./package/deploy_package_index.sh diff --git a/package/deploy_package_index.sh b/package/deploy_package_index.sh index 612a4fb6f..6f6ad920e 100644 --- a/package/deploy_package_index.sh +++ b/package/deploy_package_index.sh @@ -16,7 +16,7 @@ pushd esp8266.github.io # Copy from published release, ensure JSON valid rm -f stable/package_esp8266com_index.json -wget "https://github.com/esp8266/Arduino/releases/download/$tag/package_esp8266com_index.json" -O stable/package_esp8266com_index.json +wget "https://github.com/esp8266/Arduino/releases/download/"$tag"/package_esp8266com_index.json" -O stable/package_esp8266com_index.json cat stable/package_esp8266com_index.json | jq empty git add stable/package_esp8266com_index.json