Skip to content

Commit

Permalink
Set git config user
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroyaonoe committed Jan 13, 2024
1 parent 34011c4 commit e9daca4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/latex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9daca4

Please sign in to comment.