Skip to content

Commit

Permalink
experiment with CI_SETUP env var
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcavazos committed Jan 16, 2025
1 parent f689c2a commit fe2d6f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,19 @@ jobs:
matrix:
path: ${{ fromJson(github.event_name == 'pull_request' && needs.affected.outputs.nodejs-paths || '[]') }}
env:
GOOGLE_SAMPLES_PROJECT: ${{ needs.affected.outputs.nodejs-setups[matrix.path].project-id }}
CI_SETUP: ${{ toJson(fromJson(needs.affected.outputs.nodejs-setups)[matrix.path])}}
GOOGLE_SAMPLES_PROJECT: ${{ fromJson(needs.affected.outputs.nodejs-setups)[matrix.path].project-id }}
steps:
- run: |
echo path: ${{ matrix.path }}
echo setups: ${{ toJson(needs.affected.outputs.nodejs-setups) }}
echo setups[path]: ${{ needs.affected.outputs.nodejs-setups[matrix.path] }}
echo setups[path]: ${{ fromJson(needs.affected.outputs.nodejs-setups)[matrix.path] }}
echo setups[path]: ${{ toJson(fromJson(needs.affected.outputs.nodejs-setups)[matrix.path]) }}
echo node-version: ${{ fromJson(needs.affected.outputs.nodejs-setups)[matrix.path].node-version }}
echo node-version: ${{ fromJson(env.CI_SETUP).node-version }}
exit 1
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v4
with:
node-version: ${{ needs.affected.outputs.nodejs-setups[matrix.path].node-version }}
node-version: ${{ fromJson(needs.affected.outputs.nodejs-setups)[matrix.path].node-version }}
- uses: google-github-actions/auth@v2
with:
project_id: ${{ needs.affected.outputs.nodejs-setups[matrix.path].project-id }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generative-ai-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
- synchronize
- labeled
paths:
- 'generative-ai/snippets/**'
# - 'generative-ai/snippets/**'
- '.github/workflows/generative-ai-snippets.yaml'
schedule:
- cron: '0 0 * * 0'
Expand Down

0 comments on commit fe2d6f5

Please sign in to comment.