fix(.github/workflows): create ~/.gemini before running Gemini CLI#4697
Merged
julieqiu merged 1 commit intogoogleapis:mainfrom Mar 20, 2026
Merged
fix(.github/workflows): create ~/.gemini before running Gemini CLI#4697julieqiu merged 1 commit intogoogleapis:mainfrom
julieqiu merged 1 commit intogoogleapis:mainfrom
Conversation
The Gemini CLI expects ~/.gemini/ to exist when saving its project registry. On a fresh GitHub Actions runner this directory is missing, causing an ENOENT error on rename of projects.json.tmp. The error text is written to stderr, which also triggers a "stderr was not valid JSON" warning because the action expects structured JSON there. Adding mkdir -p ~/.gemini before the action runs prevents both problems.
Contributor
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
jameslynnwu
approved these changes
Mar 20, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4697 +/- ##
=======================================
Coverage 79.10% 79.10%
=======================================
Files 111 111
Lines 9420 9420
=======================================
Hits 7452 7452
Misses 1453 1453
Partials 515 515 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Gemini CLI expects ~/.gemini/ to exist when saving its project registry. On a fresh GitHub Actions runner this directory is missing, causing an ENOENT error on rename of projects.json.tmp. The error text is written to stderr, which also triggers a "stderr was not valid JSON" warning because the action expects structured JSON there.
Adding mkdir -p ~/.gemini before the action runs prevents both problems.