Skip to content

Commit

Permalink
[ci] Inolve gcloud only when pushing to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed May 10, 2024
1 parent 32751ef commit 7718264
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,14 @@ jobs:
path: "${{ env.DOWNLOADS_DIR }}/${{ env.START_TIME }}"

- name: Google Cloud Auth
if: ${{ github.event_name=='push' }}
uses: 'google-github-actions/auth@v2'
with:
project_id: ${{ secrets.GCS_PROJECT_ID }}
credentials_json: ${{ secrets.GCS_DOWNLOADS_SERVICE_ACCOUNT_JSON }}

- name: Google Cloud Setup
if: ${{ github.event_name=='push' }}
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.GCS_PROJECT_ID }}
Expand Down

0 comments on commit 7718264

Please sign in to comment.