mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
feat: pass docker dry run flag to publish script
This commit is contained in:
@@ -67,8 +67,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.ref_type }}" == "tag" || "${{ inputs.dry_run }}" == "false" ]]; then
|
if [[ "${{ github.ref_type }}" == "tag" || "${{ inputs.dry_run }}" == "false" ]]; then
|
||||||
echo "NPM_DRY_RUN=" >> $GITHUB_OUTPUT
|
echo "NPM_DRY_RUN=" >> $GITHUB_OUTPUT
|
||||||
|
echo "DOCKER_DRY_RUN=" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "NPM_DRY_RUN=--dry-run" >> $GITHUB_OUTPUT
|
echo "NPM_DRY_RUN=--dry-run" >> $GITHUB_OUTPUT
|
||||||
|
echo "DOCKER_DRY_RUN=true" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Configure npm for publishing
|
- name: Configure npm for publishing
|
||||||
@@ -79,6 +81,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
NPM_PUBLISH_TAG: ${{ steps.version.outputs.NPM_TAG }}
|
NPM_PUBLISH_TAG: ${{ steps.version.outputs.NPM_TAG }}
|
||||||
NPM_DRY_RUN: ${{ steps.run_type.outputs.NPM_DRY_RUN }}
|
NPM_DRY_RUN: ${{ steps.run_type.outputs.NPM_DRY_RUN }}
|
||||||
|
DOCKER_DRY_RUN: ${{ steps.run_type.outputs.DOCKER_DRY_RUN }}
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
if: steps.run_type.outputs.NPM_DRY_RUN == ''
|
if: steps.run_type.outputs.NPM_DRY_RUN == ''
|
||||||
|
|||||||
Reference in New Issue
Block a user