Skip to content

Commit 22b188a

Browse files
Configure git for PDF auto-commit action
Added git configuration step for auto-committing PDF.
1 parent 0802abd commit 22b188a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/draft-pdf.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Draft PDF
33
on:
44
push:
55
paths:
6-
- documentation/paper.md
7-
- documentation/paper_ref.bib
8-
- documentation/assets/**
9-
- .github/workflows/draft-pdf.yml
6+
- documentation/paper.md
7+
- documentation/paper_ref.bib
8+
- documentation/assets/**
9+
- .github/workflows/draft-pdf.yml
1010

1111
jobs:
1212
paper:
@@ -28,7 +28,11 @@ jobs:
2828
name: paper
2929
path: documentation/paper.pdf
3030

31-
# auto-commit PDF into the repo (needs write perms enabled)
31+
- name: Configure git
32+
run: |
33+
git config --global user.name "github-actions[bot]"
34+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
35+
3236
- name: Commit PDF to repository
3337
uses: EndBug/add-and-commit@v9
3438
with:

0 commit comments

Comments
 (0)