Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alevenberg committed Nov 6, 2023
1 parent 310f3bf commit 45a8637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-googleapis-sha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ jobs:
- uses: google-github-actions/setup-gcloud@v1
with:
version: '>= 390.0.0'
- name: Set env variables for googleapis
- name: Get SHA for google apis
env:
REPO: googleapis/googleapis
BRANCH: master
run: |
echo "COMMIT=$(curl -fsSL -H "Accept: application/vnd.github.VERSION.sha" "https://api.github.com/repos/${REPO}/commits/${BRANCH}")" >> $GITHUB_ENV
echo "COMMIT=$(curl -fsSL -H "Accept: application/vnd.github.VERSION.sha" "https://api.github.com/repos/${{ env.REPO }}/commits/${{ env.BRANCH}}")" >> $GITHUB_ENV
DOWNLOAD="$(mktemp)"
curl -fsSL "https://github.com/${REPO}/archive/${COMMIT}.tar.gz" -o "${DOWNLOAD}"
gsutil -q cp "${DOWNLOAD}" "gs://cloud-cpp-community-archive/com_google_googleapis/${COMMIT}.tar.gz"
Expand Down

0 comments on commit 45a8637

Please sign in to comment.