Skip to content

Commit d92a856

Browse files
committed
ci: when updating readme, use original author
Signed-off-by: Tom Hayward <thayward@infoblox.com>
1 parent 5be9bd4 commit d92a856

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/lint-test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ jobs:
2727
if git diff --quiet -- README.md; then
2828
echo "updated=false" >> "$GITHUB_OUTPUT"
2929
else
30-
git config user.name "github-actions[bot]"
31-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
30+
git config user.name "$(git log -1 --format='%an')"
31+
git config user.email "$(git log -1 --format='%ae')"
3232
git add README.md
33-
git commit -m "Auto-update README.md"
33+
git commit -s -m "Auto-update README.md" \
34+
-m "Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
3435
git push
3536
echo "updated=true" >> "$GITHUB_OUTPUT"
3637
fi

0 commit comments

Comments
 (0)