Skip to content

Commit 42afc49

Browse files
authored
fix(action): correct quoting in workflow expressions (#293)
Corrects the quoting of GitHub Actions expressions in `action.yml`. The expression parser was failing when an expression contained single quotes while also being wrapped in single quotes. This change switches to using double quotes to wrap expressions that contain single quotes, which resolves the parsing error and ensures the workflow functions correctly. <!-- Thank you for proposing a pull request! Please note that SOME TESTS WILL LIKELY FAIL due to how GitHub exposes secrets in Pull Requests from forks. Someone from the team will review your Pull Request and respond. Please describe your change and any implementation details below. --> Signed-off-by: Jerop Kipruto <jerop@google.com>
1 parent c27fb3e commit 42afc49

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ runs:
8484
shell: 'bash'
8585
run: '${{ github.action_path }}/scripts/validate-inputs.sh'
8686
env:
87-
INPUT_GEMINI_API_KEY_PRESENT: '${{ inputs.gemini_api_key != '' }}'
88-
INPUT_GOOGLE_API_KEY_PRESENT: '${{ inputs.google_api_key != '' }}'
89-
INPUT_GCP_WORKLOAD_IDENTITY_PROVIDER_PRESENT: '${{ inputs.gcp_workload_identity_provider != '' }}'
90-
INPUT_GCP_PROJECT_ID_PRESENT: '${{ inputs.gcp_project_id != '' }}'
91-
INPUT_GCP_SERVICE_ACCOUNT_PRESENT: '${{ inputs.gcp_service_account != '' }}'
87+
INPUT_GEMINI_API_KEY_PRESENT: "${{ inputs.gemini_api_key != '' }}"
88+
INPUT_GOOGLE_API_KEY_PRESENT: "${{ inputs.google_api_key != '' }}"
89+
INPUT_GCP_WORKLOAD_IDENTITY_PROVIDER_PRESENT: "${{ inputs.gcp_workload_identity_provider != '' }}"
90+
INPUT_GCP_PROJECT_ID_PRESENT: "${{ inputs.gcp_project_id != '' }}"
91+
INPUT_GCP_SERVICE_ACCOUNT_PRESENT: "${{ inputs.gcp_service_account != '' }}"
9292
INPUT_USE_VERTEX_AI: '${{ inputs.use_vertex_ai }}'
9393
INPUT_USE_GEMINI_CODE_ASSIST: '${{ inputs.use_gemini_code_assist }}'
9494
- name: 'Configure Gemini CLI'

0 commit comments

Comments
 (0)