Skip to content

Commit ad28b76

Browse files
committed
feat: add GitHub Action usage metrics for telemetry
1 parent a90669a commit ad28b76

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ runs:
231231
GEMINI_CLI_VERSION: '${{ inputs.gemini_cli_version }}'
232232
EXTENSIONS: '${{ inputs.extensions }}'
233233
USE_PNPM: '${{ inputs.use_pnpm }}'
234+
SURFACE: 'GH'
235+
GH_WORKFLOW_NAME: '${{ steps.sanitize_workflow_name.outputs.gh_workflow_name }}'
236+
GH_EVENT_NUMBER: '${{ github.event.issue.number || github.event.pull_request.number }}'
234237
shell: 'bash'
235238
run: |-
236239
set -euo pipefail
@@ -404,7 +407,7 @@ runs:
404407
env:
405408
GEMINI_DEBUG: '${{ fromJSON(inputs.gemini_debug || false) }}'
406409
GEMINI_API_KEY: '${{ inputs.gemini_api_key }}'
407-
SURFACE: 'GitHub'
410+
SURFACE: 'GH'
408411
GOOGLE_CLOUD_PROJECT: '${{ inputs.gcp_project_id }}'
409412
GOOGLE_CLOUD_LOCATION: '${{ inputs.gcp_location }}'
410413
GOOGLE_GENAI_USE_VERTEXAI: '${{ inputs.use_vertex_ai }}'
@@ -414,6 +417,7 @@ runs:
414417
PROMPT: '${{ inputs.prompt }}'
415418
GEMINI_MODEL: '${{ inputs.gemini_model }}'
416419
GH_WORKFLOW_NAME: '${{ steps.sanitize_workflow_name.outputs.gh_workflow_name }}'
420+
GH_EVENT_NUMBER: '${{ github.event.issue.number || github.event.pull_request.number }}'
417421

418422
- name: 'Upload Gemini CLI outputs'
419423
if: |-

0 commit comments

Comments
 (0)