Skip to content

Commit

Permalink
chore: try secret check again
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed May 1, 2024
1 parent dacac3d commit eb55b18
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/integration-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,20 @@ env:
GOOGLE_CLOUD_DATABASE: "testdb_integration"
GOOGLE_CLOUD_ENDPOINT: "spanner.googleapis.com"
DOTNET_NOLOGO: true
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
jobs:
check-env:
outputs:
has-key: ${{ steps.project-id.outputs.defined }}
runs-on: ubuntu-latest
steps:
- id: project-id
env:
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
if: "${{ env.GCP_PROJECT_ID != '' }}"
run: echo "defined=true" >> "$GITHUB_OUTPUT"
integration-test:
if: "${{ env.GCP_PROJECT_ID != '' }}"
needs: [check-env]
if: needs.check-env.outputs.has-key == 'true'
timeout-minutes: 60
runs-on: windows-latest
steps:
Expand Down

0 comments on commit eb55b18

Please sign in to comment.