fix(ci): correct workflow variable passing

- Adds explicit inputs for variables required by the reusable
  `build-and-publish` workflow.
- Updates the `orchestrator` workflow to pass these variables correctly.
- Removes a duplicated job from the `orchestrator` workflow.
This commit is contained in:
mkorwel
2025-10-23 14:36:29 -07:00
parent 247ac33265
commit 6f4c9a5317
2 changed files with 22 additions and 20 deletions
+6 -17
View File
@@ -37,29 +37,18 @@ jobs:
name: 'Build and Publish CI Bundle'
needs: 'lint'
uses: './.github/workflows/build-and-publish.yml'
ci:
name: 'CI Checks'
needs: 'lint'
uses: './.github/workflows/ci.yml'
get-vars:
name: 'Get Environment Variables'
runs-on: 'ubuntu-latest'
environment: 'dev'
outputs:
cli-package-name: '${{ steps.get-vars.outputs.cli-package-name }}'
steps:
- id: 'get-vars'
run: 'echo ''cli-package-name=''''${{ vars.CLI_PACKAGE_NAME }}'''''' >> "$GITHUB_OUTPUT"'
with:
cli-package-name: '${{ vars.CLI_PACKAGE_NAME }}'
npm-registry-scope: '${{ vars.NPM_REGISTRY_SCOPE }}'
npm-registry-url: '${{ vars.NPM_REGISTRY_URL }}'
e2e:
name: 'E2E Checks'
needs: ['build-and-publish', 'get-vars']
needs: ['build-and-publish']
uses: './.github/workflows/e2e.yml'
with:
version: '${{ needs.build-and-publish.outputs.version }}'
cli-package-name: '${{ needs.get-vars.outputs.cli-package-name }}'
cli-package-name: '${{ vars.CLI_PACKAGE_NAME }}'
image-uri: '${{ needs.build-and-publish.outputs.image-uri }}'
secrets:
GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}'