From cc8cf18b1dc1cb559ad2b5dd3fd87b94bc58f292 Mon Sep 17 00:00:00 2001 From: souzatharsis Date: Sun, 3 Nov 2024 21:52:07 -0300 Subject: [PATCH] update pdf action --- .github/workflows/draft-pdf.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/draft-pdf.yml b/.github/workflows/draft-pdf.yml index 491adae..2e5b7ba 100644 --- a/.github/workflows/draft-pdf.yml +++ b/.github/workflows/draft-pdf.yml @@ -26,9 +26,16 @@ jobs: # PDF. Note, this should be the same directory as the input # paper.md path: paper/paper.pdf - - name: Commit PDF to repository - uses: EndBug/add-and-commit@v9 + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 with: - message: '(auto) Paper PDF Draft' - # This should be the path to the paper within your repo. - add: 'paper/paper.pdf' # 'paper/*.pdf' to commit all PDFs in the paper directory + commit-message: '(auto) Paper PDF Draft' + title: 'Auto-generated Paper PDF Draft' + body: | + Automated PDF generation from paper.md + - Updated paper.pdf based on latest changes + branch: auto-pdf-updates + delete-branch: true + base: main + add-paths: | + paper/paper.pdf