From 7daa06d3cb6edded4efea0075469d16558177f48 Mon Sep 17 00:00:00 2001 From: Natalia Luzuriaga Date: Fri, 25 Oct 2024 16:43:34 -0700 Subject: [PATCH] combined into one job Signed-off-by: Natalia Luzuriaga --- .github/workflows/markdownToPDF.yml | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/markdownToPDF.yml b/.github/workflows/markdownToPDF.yml index 19ab243f..54311c86 100644 --- a/.github/workflows/markdownToPDF.yml +++ b/.github/workflows/markdownToPDF.yml @@ -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 @@ -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 \ No newline at end of file + - 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 \ No newline at end of file