Skip to content

Commit 5f843cb

Browse files
committed
revert: unrelated changes in .github/workflows/
1 parent 360e88b commit 5f843cb

File tree

6 files changed

+6
-14
lines changed

6 files changed

+6
-14
lines changed

.github/workflows/gemini-dispatch.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ on:
1717
issue_comment:
1818
types:
1919
- 'created'
20-
workflow_dispatch:
2120

2221
defaults:
2322
run:
@@ -48,7 +47,6 @@ jobs:
4847
# For issues: only on open/reopen
4948
# For comments: only if user types @gemini-cli and is OWNER/MEMBER/COLLABORATOR
5049
if: |-
51-
github.event_name == 'workflow_dispatch' ||
5250
(
5351
github.event_name == 'pull_request' &&
5452
github.event.pull_request.head.repo.fork == false
@@ -95,9 +93,7 @@ jobs:
9593
const request = process.env.REQUEST;
9694
core.setOutput('request', request);
9795
98-
if (eventType.startsWith('workflow_dispatch')) {
99-
core.setOutput('command', 'review');
100-
} else if (eventType === 'pull_request.opened') {
96+
if (eventType === 'pull_request.opened') {
10197
core.setOutput('command', 'review');
10298
} else if (['issues.opened', 'issues.reopened'].includes(eventType)) {
10399
core.setOutput('command', 'triage');
@@ -122,8 +118,6 @@ jobs:
122118
}
123119
124120
- name: 'Acknowledge request'
125-
if: |-
126-
${{ github.event.pull_request.number || github.event.issue.number }}
127121
env:
128122
GITHUB_TOKEN: '${{ steps.mint_identity_token.outputs.token || secrets.GITHUB_TOKEN || github.token }}'
129123
ISSUE_NUMBER: '${{ github.event.pull_request.number || github.event.issue.number }}'
@@ -231,8 +225,6 @@ jobs:
231225
permission-pull-requests: 'write'
232226

233227
- name: 'Send failure comment'
234-
if: |-
235-
${{ github.event.pull_request.number || github.event.issue.number }}
236228
env:
237229
GITHUB_TOKEN: '${{ steps.mint_identity_token.outputs.token || secrets.GITHUB_TOKEN || github.token }}'
238230
ISSUE_NUMBER: '${{ github.event.pull_request.number || github.event.issue.number }}'

.github/workflows/gemini-invoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
- name: 'Run Gemini CLI'
4444
id: 'run_gemini'
45-
uses: './' # ratchet:exclude
45+
uses: 'google-github-actions/run-gemini-cli@main' # ratchet:exclude
4646
env:
4747
TITLE: '${{ github.event.pull_request.title || github.event.issue.title }}'
4848
DESCRIPTION: '${{ github.event.pull_request.body || github.event.issue.body }}'

.github/workflows/gemini-issue-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: 'actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8' # ratchet:actions/checkout@v6
4040

4141
- name: 'Run Gemini PR Create'
42-
uses: './' # ratchet:exclude
42+
uses: 'google-github-actions/run-gemini-cli@main' # ratchet:exclude
4343
id: 'gemini_pr_create'
4444
env:
4545
GITHUB_TOKEN: '${{ steps.mint_identity_token.outputs.token || secrets.GITHUB_TOKEN }}'

.github/workflows/gemini-plan-execute.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: 'Run Gemini CLI'
4646
id: 'run_gemini'
47-
uses: './' # ratchet:exclude
47+
uses: 'google-github-actions/run-gemini-cli@main' # ratchet:exclude
4848
env:
4949
TITLE: '${{ github.event.pull_request.title || github.event.issue.title }}'
5050
DESCRIPTION: '${{ github.event.pull_request.body || github.event.issue.body }}'

.github/workflows/gemini-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
uses: 'actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8' # ratchet:actions/checkout@v6
4343

4444
- name: 'Run Gemini pull request review'
45-
uses: './' # ratchet:exclude
45+
uses: 'google-github-actions/run-gemini-cli@main' # ratchet:exclude
4646
id: 'gemini_pr_review'
4747
env:
4848
GITHUB_TOKEN: '${{ steps.mint_identity_token.outputs.token || secrets.GITHUB_TOKEN || github.token }}'

.github/workflows/gemini-triage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
id: 'gemini_analysis'
6060
if: |-
6161
${{ steps.get_labels.outputs.available_labels != '' }}
62-
uses: './' # ratchet:exclude
62+
uses: 'google-github-actions/run-gemini-cli@main' # ratchet:exclude
6363
env:
6464
GITHUB_TOKEN: '' # Do NOT pass any auth tokens here since this runs on untrusted inputs
6565
ISSUE_TITLE: '${{ github.event.issue.title }}'

0 commit comments

Comments
 (0)