From 7af58608d7516202417de1c04270784d6fb99434 Mon Sep 17 00:00:00 2001 From: david gauchard Date: Mon, 26 Jul 2021 23:47:38 +0200 Subject: [PATCH] add missing git-clone to the deploy step in the release process (#8243) * add missing git-clone to the deploy step in the release process --- .github/workflows/release-to-publish.yml | 4 ++++ package/deploy_package_index.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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