mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
feat(release): Support dev/prod for release patch 1 (#11404)
This commit is contained in:
@@ -90,6 +90,7 @@ jobs:
|
|||||||
commit: '${{ steps.pr_status.outputs.MERGE_COMMIT_SHA }}',
|
commit: '${{ steps.pr_status.outputs.MERGE_COMMIT_SHA }}',
|
||||||
channel: channel,
|
channel: channel,
|
||||||
original_pr: '${{ github.event.issue.number }}'
|
original_pr: '${{ github.event.issue.number }}'
|
||||||
|
environment: 'prod'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -28,10 +28,19 @@ on:
|
|||||||
description: 'The original PR number to comment back on.'
|
description: 'The original PR number to comment back on.'
|
||||||
required: false
|
required: false
|
||||||
type: 'string'
|
type: 'string'
|
||||||
|
environment:
|
||||||
|
description: 'Environment'
|
||||||
|
required: false
|
||||||
|
type: 'choice'
|
||||||
|
options:
|
||||||
|
- 'prod'
|
||||||
|
- 'dev'
|
||||||
|
default: 'prod'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create-patch:
|
create-patch:
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
|
environment: '${{ github.event.inputs.environment }}'
|
||||||
permissions:
|
permissions:
|
||||||
contents: 'write'
|
contents: 'write'
|
||||||
pull-requests: 'write'
|
pull-requests: 'write'
|
||||||
@@ -49,8 +58,13 @@ jobs:
|
|||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: 'configure .npmrc'
|
||||||
|
uses: './.github/actions/setup-npmrc'
|
||||||
|
with:
|
||||||
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
|
||||||
- name: 'Install Script Dependencies'
|
- name: 'Install Script Dependencies'
|
||||||
run: 'npm install yargs'
|
run: 'npm install yargs --no-package-lock'
|
||||||
|
|
||||||
- name: 'Configure Git User'
|
- name: 'Configure Git User'
|
||||||
run: |-
|
run: |-
|
||||||
@@ -68,7 +82,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Capture output and display it in logs using tee
|
# Capture output and display it in logs using tee
|
||||||
{
|
{
|
||||||
node scripts/releasing/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=${{ github.event.inputs.channel }} --pullRequestNumber=${{ github.event.inputs.original_pr }} --dry-run=${{ github.event.inputs.dry_run }}
|
node scripts/releasing/create-patch-pr.js --cli-package-name="${{ vars.CLI_PACKAGE_NAME }}" --commit=${{ github.event.inputs.commit }} --channel=${{ github.event.inputs.channel }} --pullRequestNumber=${{ github.event.inputs.original_pr }} --dry-run=${{ github.event.inputs.dry_run }}
|
||||||
echo "EXIT_CODE=$?" >> "$GITHUB_OUTPUT"
|
echo "EXIT_CODE=$?" >> "$GITHUB_OUTPUT"
|
||||||
} 2>&1 | tee >(
|
} 2>&1 | tee >(
|
||||||
echo "LOG_CONTENT<<EOF" >> "$GITHUB_ENV"
|
echo "LOG_CONTENT<<EOF" >> "$GITHUB_ENV"
|
||||||
|
|||||||
Reference in New Issue
Block a user