Skip to content

Commit ca81949

Browse files
andygrunwaldclaude
andcommitted
ci: Configure git identity before rebase in push retry
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>
1 parent 7a223e3 commit ca81949

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/podcast-data.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ jobs:
6060
commit_author: "GitHub Actions Bot <actions@github.com>"
6161
skip_push: true
6262

63+
- name: Configure git identity for rebase
64+
if: steps.auto-commit.outputs.changes_detected == 'true'
65+
working-directory: ${{ github.workspace }}
66+
run: |
67+
git config user.name "GitHub Actions Bot"
68+
git config user.email "actions@github.com"
69+
6370
- name: Push changes with retry
6471
if: steps.auto-commit.outputs.changes_detected == 'true'
6572
working-directory: ${{ github.workspace }}

0 commit comments

Comments
 (0)