Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
alevenberg committed Nov 6, 2023
1 parent 19a2a03 commit eebf714
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/update-googleapis-sha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit eebf714

Please sign in to comment.