Testing commit of newly generated pdf #20
Workflow file for this run
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: Converting outbound checklists from .md to .pdf | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
# Paths can be used to only trigger actions when you have edited checklist files | |
paths: | |
- 'tier*/checklist.md' | |
- 'assets/**' | |
jobs: | |
converttopdf: | |
name: Build PDF | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # Set permissions to allow writes to the repository | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Generate PDFs | |
uses: baileyjm02/markdown-to-pdf@v1 | |
with: | |
input_path: tier1/checklist.md | |
images_dir: assets | |
image_import: ../assets | |
output_dir: tier1/ | |
# Default is true, can set to false to only get PDF files | |
build_html: false | |
- name: List files in root | |
run: ls -a | |
- name: List files in tier 1 | |
run: ls -a tier1 | |
- name: Commit and push PDFs | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Updated checklist pdf" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required for authentication |