From eb55b1803df1e6e934421b8b83f94ff624cd612b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knut=20Olav=20L=C3=B8ite?= Date: Wed, 1 May 2024 10:16:46 +0200 Subject: [PATCH] chore: try secret check again --- .github/workflows/integration-windows.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-windows.yaml b/.github/workflows/integration-windows.yaml index 6801af5e7..1c0655180 100644 --- a/.github/workflows/integration-windows.yaml +++ b/.github/workflows/integration-windows.yaml @@ -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: