From d92a85673d4d549a98aa53971c6c8a9ff0854eae Mon Sep 17 00:00:00 2001 From: Tom Hayward Date: Tue, 14 Apr 2026 13:15:48 -0700 Subject: [PATCH] ci: when updating readme, use original author Signed-off-by: Tom Hayward --- .github/workflows/lint-test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index e6a39409..afa276f5 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -27,10 +27,11 @@ jobs: if git diff --quiet -- README.md; then echo "updated=false" >> "$GITHUB_OUTPUT" else - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config user.name "$(git log -1 --format='%an')" + git config user.email "$(git log -1 --format='%ae')" git add README.md - git commit -m "Auto-update README.md" + git commit -s -m "Auto-update README.md" \ + -m "Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" git push echo "updated=true" >> "$GITHUB_OUTPUT" fi