@cryptotaxi247 / infra-1 / commits / da7b4753

format-and-absorb: also set git committer name/email

Jörg Thalheim committed Jun 13, 2025 at 11:00 UTC da7b47530e0569821a4267ce79b918eb0a0bd085
1 file changed +8 -4
.github/scripts/format-and-absorb.sh
+8 -4
@@ -21,10 +21,14 @@ echo "::group::Running git absorb"
21 git add -A
22 # Create fixup commits
23 git absorb --force --base origin/main
24 -# Configure git to use non-interactive editors
25 -git config core.editor ':'
26 -# Then do an autosquash rebase
27 -git rebase --autosquash origin/main
24 +# Then do a non-interactive autosquash rebase with git identity set
25 +export GIT_EDITOR=:
26 +export GIT_SEQUENCE_EDITOR=:
27 +export GIT_AUTHOR_NAME="github-actions[bot]"
28 +export GIT_AUTHOR_EMAIL="github-actions[bot]@users.noreply.github.com"
29 +export GIT_COMMITTER_NAME="github-actions[bot]"
30 +export GIT_COMMITTER_EMAIL="github-actions[bot]@users.noreply.github.com"
31 +git rebase -i --autosquash origin/main
32 echo "::endgroup::"
33
34 echo "::group::Pushing changes"