Skip to content

Configure git for PDF auto-commit action #2

Configure git for PDF auto-commit action

Configure git for PDF auto-commit action #2

Workflow file for this run

name: Draft PDF
on:
push:
paths:
- documentation/paper.md
- documentation/paper_ref.bib
- documentation/assets/**
- .github/workflows/draft-pdf.yml
jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
paper-path: documentation/paper.md
- name: Upload
uses: actions/upload-artifact@v4
with:
name: paper
path: documentation/paper.pdf
- name: Configure git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit PDF to repository
uses: EndBug/add-and-commit@v9
with:
message: '(auto) Paper PDF Draft'
add: 'documentation/paper.pdf'