mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-13 21:07:00 -07:00
orchestrator
This commit is contained in:
@@ -5,15 +5,15 @@ on:
|
||||
workflow_call:
|
||||
outputs:
|
||||
tag:
|
||||
description: "The tag of the published package"
|
||||
value: ${{ jobs.publish-bundle.outputs.tag }}
|
||||
description: 'The tag of the published package'
|
||||
value: '${{ jobs.publish-bundle.outputs.tag }}'
|
||||
|
||||
jobs:
|
||||
publish-bundle:
|
||||
name: 'Publish Bundle'
|
||||
runs-on: 'gemini-cli-ubuntu-16-core'
|
||||
outputs:
|
||||
tag: ${{ steps.get_tag.outputs.tag }}
|
||||
tag: '${{ steps.get_tag.outputs.tag }}'
|
||||
permissions:
|
||||
contents: 'read'
|
||||
packages: 'write'
|
||||
@@ -45,8 +45,11 @@ jobs:
|
||||
run: 'npm run bundle'
|
||||
|
||||
- name: 'Get tag'
|
||||
id: get_tag
|
||||
run: echo "tag=ci-${{ github.sha }}" >> $GITHUB_OUTPUT
|
||||
id: 'get_tag'
|
||||
shell: 'bash'
|
||||
env:
|
||||
SHA: 'ci-${{ github.sha }}'
|
||||
run: 'echo "tag=$SHA"'
|
||||
|
||||
- name: 'Publish to GitHub Packages'
|
||||
run: 'npm publish --tag=${{ steps.get_tag.outputs.tag }}'
|
||||
run: 'npm publish --tag="${{ steps.get_tag.outputs.tag }}"'
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
name: 'Testing: CI'
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
tag:
|
||||
description: 'The tag of the published package'
|
||||
required: true
|
||||
type: string
|
||||
type: 'string'
|
||||
|
||||
concurrency:
|
||||
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
|
||||
|
||||
@@ -4,7 +4,7 @@ on:
|
||||
tag:
|
||||
description: 'The tag of the published package'
|
||||
required: true
|
||||
type: string
|
||||
type: 'string'
|
||||
|
||||
concurrency:
|
||||
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
|
||||
|
||||
@@ -15,18 +15,18 @@ concurrency:
|
||||
jobs:
|
||||
build-and-publish:
|
||||
name: 'Build and Publish CI Bundle'
|
||||
uses: ./.github/workflows/build-and-publish.yml
|
||||
uses: './.github/workflows/build-and-publish.yml'
|
||||
|
||||
ci:
|
||||
name: 'CI Checks'
|
||||
needs: build-and-publish
|
||||
uses: ./.github/workflows/ci.yml
|
||||
needs: 'build-and-publish'
|
||||
uses: './.github/workflows/ci.yml'
|
||||
with:
|
||||
tag: ${{ needs.build-and-publish.outputs.tag }}
|
||||
tag: '${{ needs.build-and-publish.outputs.tag }}'
|
||||
|
||||
e2e:
|
||||
name: 'E2E Checks'
|
||||
needs: build-and-publish
|
||||
uses: ./.github/workflows/e2e.yml
|
||||
needs: 'build-and-publish'
|
||||
uses: './.github/workflows/e2e.yml'
|
||||
with:
|
||||
tag: ${{ needs.build-and-publish.outputs.tag }}
|
||||
tag: '${{ needs.build-and-publish.outputs.tag }}'
|
||||
|
||||
Reference in New Issue
Block a user