Trigger PDF generation #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger PDF generation | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Generate PDF | |
run: | | |
npm ci | |
npm run pdf | |
git config user.name ${GITHUB_ACTOR} | |
git config user.email [email protected] | |
git add docs/*/*.pdf | |
git diff-index --quiet HEAD docs/*/*.pdf || git commit -m "PDF generation" | |
git push |