Skip to content

Commit c15f752

Browse files
authored
fix(action): correct upload artifacts condition (#368)
The previous condition `${{ inputs.upload_artifacts }}` would evaluate to true for any non-empty string, causing artifacts to be uploaded even when the input was false. This change corrects the condition to `${{ inputs.upload_artifacts == true }}`, ensuring that artifacts are only uploaded when the `upload_artifacts` input is explicitly set to true. Co-authored-by: [email protected]
1 parent a1ac5be commit c15f752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ inputs:
7272
description: 'A list of Gemini CLI extensions to install.'
7373
required: false
7474
upload_artifacts:
75-
description: 'Whether or not to upload artifacts to the github action.'
75+
description: 'Whether to upload artifacts to the github action.'
7676
required: false
7777
default: 'false'
7878

@@ -300,7 +300,7 @@ runs:
300300

301301
- name: 'Upload Gemini CLI outputs'
302302
if: |-
303-
${{ inputs.upload_artifacts }}
303+
${{ inputs.upload_artifacts == 'true' }}
304304
uses: 'actions/upload-artifact@v4' # ratchet:exclude
305305
with:
306306
name: 'gemini-output'

0 commit comments

Comments
 (0)