diff --git a/.github/workflows/update-googleapis-sha.yml b/.github/workflows/update-googleapis-sha.yml index 0670925222600..dba21f4d76077 100644 --- a/.github/workflows/update-googleapis-sha.yml +++ b/.github/workflows/update-googleapis-sha.yml @@ -36,13 +36,13 @@ jobs: - name: Get SHA for google apis run: | echo "COMMIT=$(curl -fsSL -H 'Accept: application/vnd.github.VERSION.sha' 'https://api.github.com/repos/${{ env.REPO }}/commits/${{ env.BRANCH}}')" >> $GITHUB_ENV - - name: Make a temp directory - run: echo "DOWNLOADS=$(mktemp -d)" >> $GITHUB_ENV - name: Get SHA for google apis run: | - curl -fsSL "https://github.com/${{ env.REPO }}/archive/${{ env.COMMIT }}.tar.gz" -o "${{ env.DOWNLOADS }}" - gsutil -q cp "${{ env.DOWNLOADS }}" "gs://cloud-cpp-community-archive/com_google_googleapis/${{ env.COMMIT }}.tar.gz" - echo 'SHA256=$(sha256sum "${{ env.DOWNLOADS }}" | sed "s/ .*//")' >> $GITHUB_ENV + DOWNLOADS=$(mktemp -d) + 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 run: TERM=xterm ./external/googleapis/renovate.sh env: