mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
Make trigger_e2e manually fireable. (#14547)
This commit is contained in:
committed by
GitHub
parent
1c5213788c
commit
f4f2bcbd98
19
.github/workflows/trigger_e2e.yml
vendored
19
.github/workflows/trigger_e2e.yml
vendored
@@ -3,11 +3,15 @@ name: 'Trigger E2E'
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch_ref:
|
||||
description: 'Branch to run on'
|
||||
required: true
|
||||
default: 'main'
|
||||
repo_name:
|
||||
description: 'Repository name (e.g., owner/repo)'
|
||||
required: false
|
||||
type: 'string'
|
||||
head_sha:
|
||||
description: 'SHA of the commit to test'
|
||||
required: false
|
||||
type: 'string'
|
||||
# pull_request:
|
||||
|
||||
jobs:
|
||||
save_repo_name:
|
||||
@@ -15,11 +19,14 @@ jobs:
|
||||
steps:
|
||||
- name: 'Save Repo name'
|
||||
env:
|
||||
# Replace with github.event.pull_request.head.repo.full_name when switched to listen on pull request events. This repo name does not contain the org which is needed for checkout.
|
||||
REPO_NAME: '${{ github.event.repository.name }}'
|
||||
# add "|| github.event.pull_request.head.repo.full_name"
|
||||
REPO_NAME: '${{ github.event.inputs.repo_name || github.event.repository.name }}'
|
||||
# add "|| github.event.pull_request.head.sha"
|
||||
HEAD_SHA: '${{ github.event.inputs.head_sha }}'
|
||||
run: |
|
||||
mkdir -p ./pr
|
||||
echo '${{ env.REPO_NAME }}' > ./pr/repo_name
|
||||
echo '${{ env.HEAD_SHA }}' > ./pr/head_sha
|
||||
- uses: 'actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02' # ratchet:actions/upload-artifact@v4
|
||||
with:
|
||||
name: 'repo_name'
|
||||
|
||||
Reference in New Issue
Block a user