diff --git a/.github/workflows/update-googleapis-sha.yml b/.github/workflows/update-googleapis-sha.yml index eb18dccf2df61..11466b7a3a107 100644 --- a/.github/workflows/update-googleapis-sha.yml +++ b/.github/workflows/update-googleapis-sha.yml @@ -38,13 +38,11 @@ jobs: echo "COMMIT=$(curl -fsSL -H 'Accept: application/vnd.github.VERSION.sha' 'https://api.github.com/repos/${{ env.REPO }}/commits/${{ env.BRANCH}}')" >> $GITHUB_ENV - name: Get SHA for google apis run: | - DOWNLOADS=$(mktemp -d) - echo ${DOWNLOADS} - curl -fsSL "https://github.com/${{ env.REPO }}/archive/${{ env.COMMIT }}.tar.gz" -o "${DOWNLOADS}" - gsutil -q cp "${DOWNLOADS}" "gs://cloud-cpp-community-archive/com_google_googleapis/${{ env.COMMIT }}.tar.gz" - echo 'SHA256=$(sha256sum "${DOWNLOADS}" | sed "s/ .*//")' >> $GITHUB_ENV - rm -rf ${DOWNLOADS} - - name: Run the `renovate.sh` script + DOWNLOAD="$(mktemp)" + curl -fsSL "https://github.com/${{ env.REPO }}/archive/${{ env.COMMIT }}.tar.gz" -o "${DOWNLOAD}" + gsutil -q cp "${DOWNLOAD}" "gs://cloud-cpp-community-archive/com_google_googleapis/${{ env.COMMIT }}.tar.gz" + echo 'SHA256=$(sha256sum "${DOWNLOAD}" | sed "s/ .*//")' >> $GITHUB_ENV + rm -rf ${DOWNLOAD} run: TERM=xterm ./external/googleapis/renovate.sh env: SHA256: ${{ vars.SHA256 }}