Skip to content

Commit a80cd28

Browse files
authored
Fix dry run. (google-gemini#10286)
1 parent 46c884d commit a80cd28

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/actions/publish-release/action.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,11 @@ runs:
116116
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-core }}'
117117
shell: 'bash'
118118
run: |
119-
npm publish \
120-
--dry-run="${{ inputs.dry-run }}" \
121-
--workspace="@google/gemini-cli-core" \
122-
--no-tag
119+
if [ "${{ inputs.dry-run }}" == "true" ]; then
120+
npm publish --dry-run --workspace="@google/gemini-cli-core" --no-tag
121+
else
122+
npm publish --workspace="@google/gemini-cli-core" --no-tag
123+
fi
123124
124125
- name: '🔗 Install latest core package'
125126
working-directory: '${{ inputs.working-directory }}'
@@ -136,10 +137,11 @@ runs:
136137
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-cli }}'
137138
shell: 'bash'
138139
run: |
139-
npm publish \
140-
--dry-run="${{ inputs.dry-run }}" \
141-
--workspace="@google/gemini-cli" \
142-
--no-tag
140+
if [ "${{ inputs.dry-run }}" == "true" ]; then
141+
npm publish --dry-run --workspace="@google/gemini-cli" --no-tag
142+
else
143+
npm publish --workspace="@google/gemini-cli" --no-tag
144+
fi
143145
144146
- name: '🔬 Verify NPM release by version'
145147
uses: './.github/actions/verify-release'

.github/actions/push-sandbox/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ runs:
7777
echo "uri=$(cat final_image_uri.txt)" >> $GITHUB_OUTPUT
7878
- name: 'publish'
7979
shell: 'bash'
80-
if: "${{ inputs.dry-run == 'false' }}"
80+
if: "${{ inputs.dry-run != 'true' }}"
8181
run: |-
8282
docker push "${{ steps.docker_build.outputs.uri }}"
8383
- name: 'Create issue on failure'

.github/actions/tag-npm-release/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ runs:
3333

3434
- name: 'Change tag for @google/gemini-cli-core'
3535
if: |-
36-
${{ inputs.dry-run == 'false' }}
36+
${{ inputs.dry-run != 'true' }}
3737
env:
3838
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-core }}'
3939
shell: 'bash'
@@ -42,7 +42,7 @@ runs:
4242
4343
- name: 'Change tag for @google/gemini-cli'
4444
if: |-
45-
${{ inputs.dry-run == 'false' }}
45+
${{ inputs.dry-run != 'true' }}
4646
env:
4747
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-cli }}'
4848
shell: 'bash'

0 commit comments

Comments
 (0)