From e9daca4af17816651219519973db21de1f9e6144 Mon Sep 17 00:00:00 2001 From: Hiroya Onoe Date: Sat, 13 Jan 2024 20:01:22 +0900 Subject: [PATCH] Set git config user --- .github/workflows/latex.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/latex.yaml b/.github/workflows/latex.yaml index a7cf9b1..b0241a7 100644 --- a/.github/workflows/latex.yaml +++ b/.github/workflows/latex.yaml @@ -38,6 +38,8 @@ jobs: - name: "Commit and Push main.pdf" run: | + git config user.name "$(git --no-pager log --format=format:'%an' -n 1)" + git config user.email "$(git --no-pager log --format=format:'%ae' -n 1)" git fetch if git branch -a | grep -q "remotes/origin/main-pdf"; then git checkout -t origin/main-pdf