Allow setting project ID

This commit is contained in:
Seth Vargo 2020-03-10 15:26:38 -04:00
parent e51b9908a9
commit 94600200ac
No known key found for this signature in database
GPG key ID: C921994F9C27E0FF
5 changed files with 95 additions and 21 deletions

View file

@ -69,3 +69,22 @@ jobs:
- name: Verify Exported
shell: bash
run: test -f $GOOGLE_APPLICATION_CREDENTIALS
project_id:
name: setup-gcloud with configured project
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: setup-gcloud
uses: ./setup-gcloud/
with:
project_id: ${{ secrets.SETUP_GCLOUD_IT_PROJECT_ID }}
- name: Verify project
shell: bash
run: gcloud config get-value project | grep ${{ secrets.SETUP_GCLOUD_IT_PROJECT_ID }}