Skip to content

Commit

Permalink
inspect env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcavazos committed Jan 21, 2025
1 parent aa9c00d commit 4f00136
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,11 @@ jobs:
uses: actions/github-script@v7
with:
script: |
console.log("Hello")
// CI_SETUP: ${{ fromJson(env.CI_SETUP) }}
// GOOGLE_SAMPLES_PROJECT: ${{ fromJson(env.CI_SETUP).project }}
console.log(typeof env)
console.log(JSON.stringify(env))
console.log(${{ fromJson(env.CI_SETUP).project }})
const ciSetup = JSON.parse(process.env.CI_SETUP)
console.log(typeof ciSetup)
console.log(ciSetup)
console.log(ciSetup["project-id"])
process.exit(1)
- name: Get Secret Manager secrets
uses: google-github-actions/get-secretmanager-secrets@v2
if: fromJson(env.CI_SETUP).secrets != null
Expand Down

0 comments on commit 4f00136

Please sign in to comment.