mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 14:10:37 -07:00
fix(github-actions): use robot PAT for release creation to trigger release notes (#18794)
This commit is contained in:
5
.github/actions/publish-release/action.yml
vendored
5
.github/actions/publish-release/action.yml
vendored
@@ -20,6 +20,9 @@ inputs:
|
|||||||
github-token:
|
github-token:
|
||||||
description: 'The GitHub token for creating the release.'
|
description: 'The GitHub token for creating the release.'
|
||||||
required: true
|
required: true
|
||||||
|
github-release-token:
|
||||||
|
description: 'The GitHub token used specifically for creating the GitHub release (to trigger other workflows).'
|
||||||
|
required: false
|
||||||
dry-run:
|
dry-run:
|
||||||
description: 'Whether to run in dry-run mode.'
|
description: 'Whether to run in dry-run mode.'
|
||||||
type: 'string'
|
type: 'string'
|
||||||
@@ -254,7 +257,7 @@ runs:
|
|||||||
working-directory: '${{ inputs.working-directory }}'
|
working-directory: '${{ inputs.working-directory }}'
|
||||||
if: "${{ inputs.dry-run != 'true' && inputs.skip-github-release != 'true' && inputs.npm-tag != 'dev' && inputs.npm-registry-url != 'https://npm.pkg.github.com/' }}"
|
if: "${{ inputs.dry-run != 'true' && inputs.skip-github-release != 'true' && inputs.npm-tag != 'dev' && inputs.npm-registry-url != 'https://npm.pkg.github.com/' }}"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: '${{ inputs.github-token }}'
|
GITHUB_TOKEN: '${{ inputs.github-release-token || inputs.github-token }}'
|
||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
run: |
|
run: |
|
||||||
gh release create "${{ inputs.release-tag }}" \
|
gh release create "${{ inputs.release-tag }}" \
|
||||||
|
|||||||
1
.github/workflows/release-manual.yml
vendored
1
.github/workflows/release-manual.yml
vendored
@@ -110,6 +110,7 @@ jobs:
|
|||||||
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
|
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
|
||||||
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
|
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
|
||||||
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
github-release-token: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}'
|
||||||
dry-run: '${{ github.event.inputs.dry_run }}'
|
dry-run: '${{ github.event.inputs.dry_run }}'
|
||||||
previous-tag: '${{ steps.release_info.outputs.PREVIOUS_TAG }}'
|
previous-tag: '${{ steps.release_info.outputs.PREVIOUS_TAG }}'
|
||||||
skip-github-release: '${{ github.event.inputs.skip_github_release }}'
|
skip-github-release: '${{ github.event.inputs.skip_github_release }}'
|
||||||
|
|||||||
3
.github/workflows/release-nightly.yml
vendored
3
.github/workflows/release-nightly.yml
vendored
@@ -124,6 +124,7 @@ jobs:
|
|||||||
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
|
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
|
||||||
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
|
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
|
||||||
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
github-release-token: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}'
|
||||||
dry-run: '${{ steps.vars.outputs.is_dry_run }}'
|
dry-run: '${{ steps.vars.outputs.is_dry_run }}'
|
||||||
previous-tag: '${{ steps.nightly_version.outputs.PREVIOUS_TAG }}'
|
previous-tag: '${{ steps.nightly_version.outputs.PREVIOUS_TAG }}'
|
||||||
working-directory: './release'
|
working-directory: './release'
|
||||||
@@ -144,7 +145,7 @@ jobs:
|
|||||||
branch-name: 'release/${{ steps.nightly_version.outputs.RELEASE_TAG }}'
|
branch-name: 'release/${{ steps.nightly_version.outputs.RELEASE_TAG }}'
|
||||||
pr-title: 'chore/release: bump version to ${{ steps.nightly_version.outputs.RELEASE_VERSION }}'
|
pr-title: 'chore/release: bump version to ${{ steps.nightly_version.outputs.RELEASE_VERSION }}'
|
||||||
pr-body: 'Automated version bump for nightly release.'
|
pr-body: 'Automated version bump for nightly release.'
|
||||||
github-token: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}'
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
dry-run: '${{ steps.vars.outputs.is_dry_run }}'
|
dry-run: '${{ steps.vars.outputs.is_dry_run }}'
|
||||||
working-directory: './release'
|
working-directory: './release'
|
||||||
|
|
||||||
|
|||||||
@@ -184,6 +184,7 @@ jobs:
|
|||||||
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
|
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
|
||||||
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
|
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
|
||||||
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
github-release-token: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}'
|
||||||
dry-run: '${{ github.event.inputs.dry_run }}'
|
dry-run: '${{ github.event.inputs.dry_run }}'
|
||||||
previous-tag: '${{ steps.patch_version.outputs.PREVIOUS_TAG }}'
|
previous-tag: '${{ steps.patch_version.outputs.PREVIOUS_TAG }}'
|
||||||
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
|
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
|
||||||
|
|||||||
4
.github/workflows/release-promote.yml
vendored
4
.github/workflows/release-promote.yml
vendored
@@ -239,6 +239,7 @@ jobs:
|
|||||||
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
|
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
|
||||||
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
|
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
|
||||||
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
github-release-token: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}'
|
||||||
dry-run: '${{ github.event.inputs.dry_run }}'
|
dry-run: '${{ github.event.inputs.dry_run }}'
|
||||||
previous-tag: '${{ needs.calculate-versions.outputs.PREVIOUS_PREVIEW_TAG }}'
|
previous-tag: '${{ needs.calculate-versions.outputs.PREVIOUS_PREVIEW_TAG }}'
|
||||||
working-directory: './release'
|
working-directory: './release'
|
||||||
@@ -305,6 +306,7 @@ jobs:
|
|||||||
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
|
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
|
||||||
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
|
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
|
||||||
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
github-release-token: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}'
|
||||||
dry-run: '${{ github.event.inputs.dry_run }}'
|
dry-run: '${{ github.event.inputs.dry_run }}'
|
||||||
previous-tag: '${{ needs.calculate-versions.outputs.PREVIOUS_STABLE_TAG }}'
|
previous-tag: '${{ needs.calculate-versions.outputs.PREVIOUS_STABLE_TAG }}'
|
||||||
working-directory: './release'
|
working-directory: './release'
|
||||||
@@ -390,7 +392,7 @@ jobs:
|
|||||||
branch-name: '${{ steps.release_branch.outputs.BRANCH_NAME }}'
|
branch-name: '${{ steps.release_branch.outputs.BRANCH_NAME }}'
|
||||||
pr-title: 'chore(release): bump version to ${{ needs.calculate-versions.outputs.NEXT_NIGHTLY_VERSION }}'
|
pr-title: 'chore(release): bump version to ${{ needs.calculate-versions.outputs.NEXT_NIGHTLY_VERSION }}'
|
||||||
pr-body: 'Automated version bump to prepare for the next nightly release.'
|
pr-body: 'Automated version bump to prepare for the next nightly release.'
|
||||||
github-token: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}'
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
dry-run: '${{ github.event.inputs.dry_run }}'
|
dry-run: '${{ github.event.inputs.dry_run }}'
|
||||||
|
|
||||||
- name: 'Create Issue on Failure'
|
- name: 'Create Issue on Failure'
|
||||||
|
|||||||
Reference in New Issue
Block a user