Skip to content

Commit

Permalink
combined into one job
Browse files Browse the repository at this point in the history
Signed-off-by: Natalia Luzuriaga <[email protected]>
  • Loading branch information
natalialuzuriaga committed Oct 25, 2024
1 parent b1415a7 commit 7daa06d
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/markdownToPDF.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ 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 }}
- uses: baileyjm02/markdown-to-pdf@v1
- name: Generate PDFs
uses: baileyjm02/markdown-to-pdf@v1
with:
input_path: tier1/checklist.md
images_dir: assets
Expand All @@ -27,20 +30,9 @@ jobs:
run: ls -a
- name: List files in tier 1
run: ls -a tier1
commit_all:
name: Commit all PDFs
runs-on: ubuntu-latest
needs: converttopdf # Ensure this job runs after the PDFs are built
permissions:
contents: write # Set permissions to allow writes to the repository
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Commit and push PDFs
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Updated all checklists PDFs"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required for authentication
- 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

0 comments on commit 7daa06d

Please sign in to comment.