mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
handling propper checkouts for releasemanual (#8954)
This commit is contained in:
@@ -46,9 +46,15 @@ jobs:
|
|||||||
issues: 'write'
|
issues: 'write'
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout'
|
- name: 'Checkout'
|
||||||
|
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8'
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: 'Checkout Release Code'
|
||||||
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8'
|
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8'
|
||||||
with:
|
with:
|
||||||
ref: '${{ github.event.inputs.ref }}'
|
ref: '${{ github.event.inputs.ref }}'
|
||||||
|
path: 'release'
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: 'Debug Inputs'
|
- name: 'Debug Inputs'
|
||||||
@@ -61,10 +67,12 @@ jobs:
|
|||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: 'Install Dependencies'
|
- name: 'Install Dependencies'
|
||||||
|
working-directory: './release'
|
||||||
run: 'npm ci'
|
run: 'npm ci'
|
||||||
|
|
||||||
- name: 'Prepare Release Info'
|
- name: 'Prepare Release Info'
|
||||||
id: 'release_info'
|
id: 'release_info'
|
||||||
|
working-directory: './release'
|
||||||
run: |
|
run: |
|
||||||
RELEASE_VERSION="${{ github.event.inputs.version }}"
|
RELEASE_VERSION="${{ github.event.inputs.version }}"
|
||||||
echo "RELEASE_VERSION=${RELEASE_VERSION#v}" >> "${GITHUB_OUTPUT}"
|
echo "RELEASE_VERSION=${RELEASE_VERSION#v}" >> "${GITHUB_OUTPUT}"
|
||||||
@@ -75,6 +83,7 @@ jobs:
|
|||||||
uses: './.github/actions/run-tests'
|
uses: './.github/actions/run-tests'
|
||||||
with:
|
with:
|
||||||
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
|
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
|
||||||
|
working-directory: './release'
|
||||||
|
|
||||||
- name: 'Publish Release'
|
- name: 'Publish Release'
|
||||||
uses: './.github/actions/publish-release'
|
uses: './.github/actions/publish-release'
|
||||||
@@ -89,3 +98,4 @@ jobs:
|
|||||||
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 }}'
|
||||||
|
working-directory: './release'
|
||||||
|
|||||||
Reference in New Issue
Block a user