google-github-actions / google-github-actions/run-gemini-cli
Issues with re-triggering workflows and rapid token consumption in gemini-cli on GitHub Actions
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 285
- Avg merge
- 8h 8m
- Merged PRs (30d)
- 1
Description
Description
I’ve been using gemini-cli locally and I’m very satisfied with the results – it works quickly and efficiently.
I wanted to test it in a GitHub Actions environment, so I added the integration to my private repository using /setup-github.
The first run worked perfectly:
I mentioned @gemini-cli in a PR comment, and the workflow was successfully triggered. It implemented the changes I requested without any issues.
The problem occurs when I try to request changes again in the same PR.
When I mention @gemini-cli a second time, I get the message:
@tatarysh I've received your request and I'm working on it now! 🤖
…but the workflow completes without making any changes to the code.
I tried again, with the same result.
Interestingly, if I post a request in a comment inside an existing issue, it sometimes works.
However, on the next request in the same issue, nothing happens again – the workflow runs for a few minutes and then finishes without any changes.
This forces me to jump back and forth between PRs and issues just to get updates applied.
Steps to Reproduce
- Create a PR and mention
@gemini-cliin a comment → works as expected. - In the same PR, mention
@gemini-cliagain and request additional changes. - Observe that the workflow runs but no code changes are made.
- Post a request as a comment inside an existing issue → sometimes works, sometimes does not.
- If it works the first time in that issue, repeat the request in another comment → again, no changes are made.
Expected Behavior
- Ability to trigger
@gemini-climultiple times in the same PR or issue to apply iterative changes. - Consistent behavior across both PRs and issues.
Actual Behavior
- The first trigger in a PR or issue works as expected.
- Subsequent triggers in the same PR or issue complete without making any changes, despite the bot message confirming that it’s "working on it".
Additional Notes
-
I am currently using the free version of
gemini-cli. -
Token consumption on GitHub Actions seems unusually high.
- Locally, I can process ~1M tokens in a whole day.
- In GitHub Actions, just a few simple requests consume 5M tokens.
-
Sometimes the workflow generates a
response.mdfile with a summary of what was added and commits it to the repository — but this does not always happen.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the /setup-github integration and repeated @gemini-cli comments in the same PR and issue, then inspect the resulting GitHub Actions workflow runs and token usage. Done means subsequent requests consistently apply changes in both contexts without unexplained token consumption.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, typescript
- Domain
- ai, ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100