diff --git a/.github/actions/publish-release/action.yml b/.github/actions/publish-release/action.yml index 360a17b114..479ea4ac90 100644 --- a/.github/actions/publish-release/action.yml +++ b/.github/actions/publish-release/action.yml @@ -116,10 +116,11 @@ runs: NODE_AUTH_TOKEN: '${{ inputs.wombat-token-core }}' shell: 'bash' run: | - npm publish \ - --dry-run="${{ inputs.dry-run }}" \ - --workspace="@google/gemini-cli-core" \ - --no-tag + if [ "${{ inputs.dry-run }}" == "true" ]; then + npm publish --dry-run --workspace="@google/gemini-cli-core" --no-tag + else + npm publish --workspace="@google/gemini-cli-core" --no-tag + fi - name: '🔗 Install latest core package' working-directory: '${{ inputs.working-directory }}' @@ -136,10 +137,11 @@ runs: NODE_AUTH_TOKEN: '${{ inputs.wombat-token-cli }}' shell: 'bash' run: | - npm publish \ - --dry-run="${{ inputs.dry-run }}" \ - --workspace="@google/gemini-cli" \ - --no-tag + if [ "${{ inputs.dry-run }}" == "true" ]; then + npm publish --dry-run --workspace="@google/gemini-cli" --no-tag + else + npm publish --workspace="@google/gemini-cli" --no-tag + fi - name: '🔬 Verify NPM release by version' uses: './.github/actions/verify-release' diff --git a/.github/actions/push-sandbox/action.yml b/.github/actions/push-sandbox/action.yml index d91bf380e7..f867927ba3 100644 --- a/.github/actions/push-sandbox/action.yml +++ b/.github/actions/push-sandbox/action.yml @@ -77,7 +77,7 @@ runs: echo "uri=$(cat final_image_uri.txt)" >> $GITHUB_OUTPUT - name: 'publish' shell: 'bash' - if: "${{ inputs.dry-run == 'false' }}" + if: "${{ inputs.dry-run != 'true' }}" run: |- docker push "${{ steps.docker_build.outputs.uri }}" - name: 'Create issue on failure' diff --git a/.github/actions/tag-npm-release/action.yml b/.github/actions/tag-npm-release/action.yml index 8e2cd03a54..fa991f5db4 100644 --- a/.github/actions/tag-npm-release/action.yml +++ b/.github/actions/tag-npm-release/action.yml @@ -33,7 +33,7 @@ runs: - name: 'Change tag for @google/gemini-cli-core' if: |- - ${{ inputs.dry-run == 'false' }} + ${{ inputs.dry-run != 'true' }} env: NODE_AUTH_TOKEN: '${{ inputs.wombat-token-core }}' shell: 'bash' @@ -42,7 +42,7 @@ runs: - name: 'Change tag for @google/gemini-cli' if: |- - ${{ inputs.dry-run == 'false' }} + ${{ inputs.dry-run != 'true' }} env: NODE_AUTH_TOKEN: '${{ inputs.wombat-token-cli }}' shell: 'bash'