diff --git a/.github/workflows/update-googleapis-sha.yml b/.github/workflows/update-googleapis-sha.yml index 80fb5e69ea070..55c7509bf0d8b 100644 --- a/.github/workflows/update-googleapis-sha.yml +++ b/.github/workflows/update-googleapis-sha.yml @@ -11,6 +11,10 @@ permissions: pull-requests: write id-token: 'write' +env: + REPO: googleapis/googleapis + BRANCH: master + jobs: create-update-google-apis-pr: runs-on: ubuntu-latest @@ -30,15 +34,9 @@ jobs: with: version: '>= 390.0.0' - name: Get SHA for google apis - env: - REPO: googleapis/googleapis - BRANCH: master run: | - echo "COMMIT=$(curl --retry 5 -fsSL -H "Accept: application/vnd.github.VERSION.sha" "https://api.github.com/repos/${{ env.REPO }}/commits/${{ env.BRANCH}}")" >> $GITHUB_ENV + echo "COMMIT=$(curl --retry 5 -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 - env: - REPO: googleapis/googleapis - BRANCH: master run: | curl -fsSL "https://github.com/${{ env.REPO }}/archive/${{ env.COMMIT }}.tar.gz" -o "${{ runner.temp }}" gsutil -q cp "${{ runner.temp }}" "gs://cloud-cpp-community-archive/com_google_googleapis/${{ env.COMMIT }}.tar.gz"