Skip to content

ci: Configure git identity before rebase in push retry#404

Merged
andygrunwald merged 1 commit into
mainfrom
andygrunwald/fix-rebase-identity-in-auto-commit
May 9, 2026
Merged

ci: Configure git identity before rebase in push retry#404
andygrunwald merged 1 commit into
mainfrom
andygrunwald/fix-rebase-identity-in-auto-commit

Conversation

@andygrunwald

Copy link
Copy Markdown
Contributor

Summary

  • Adds a Configure git identity for rebase step between the auto-commit step and the Push changes with retry retry loop in .github/workflows/podcast-data.yml.
  • Sets repo-level user.name/user.email to the same values already advertised on stefanzweifel/git-auto-commit-action (GitHub Actions Bot <actions@github.com>), so git pull --rebase inside the retry loop has a committer identity to replay commits with.

Why

The retry loop introduced to handle concurrent pushes to main calls git pull --rebase origin main. Rebase needs a committer identity in git config. stefanzweifel/git-auto-commit-action only sets identity inline for its own git commit (via git -c …) and does not persist it, so the next shell step starts without one and aborts with:

Committer identity unknown
fatal: empty ident name (for <runner@...>) not allowed

Same root cause and fix as EngineeringKiosk/awesome-software-engineering-games#53.

Test plan

  • Merge to main.
  • Trigger Podcast data via workflow_dispatch from the Actions tab.
  • Confirm the new Configure git identity for rebase step runs (or is skipped when no changes were detected).
  • Confirm Push changes with retry succeeds without the empty ident name error, including in the rebase path if a concurrent push lands.

🤖 Generated with Claude Code

The push-with-retry step calls `git pull --rebase origin main` to
recover from concurrent pushes to `main`. Rebase replays commits and
therefore needs `user.name` / `user.email` in git config. The
`stefanzweifel/git-auto-commit-action` only sets those inline for its
own `git commit` invocation, so the next shell step has no identity
and the rebase aborts with "empty ident name (for <runner@...>) not
allowed".

Persist the identity at the repo level — using the same name and
email already configured on the auto-commit step — before the retry
loop runs. Mirrors the fix landed in
EngineeringKiosk/awesome-software-engineering-games.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@andygrunwald andygrunwald merged commit 919dba0 into main May 9, 2026
5 checks passed
@andygrunwald andygrunwald deleted the andygrunwald/fix-rebase-identity-in-auto-commit branch May 9, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant