diff --git a/.github/workflows/pdf.yaml b/.github/workflows/pdf.yaml index 1ae0f93..47c8cff 100644 --- a/.github/workflows/pdf.yaml +++ b/.github/workflows/pdf.yaml @@ -13,7 +13,7 @@ jobs: name: Get Changed Files runs-on: ubuntu-20.04 outputs: - changed-files: ${{ steps.changed-files.outputs.all_changed_and_modified_files }} + changed-files: ${{ steps.changed-files.outputs.only_modified }} steps: - uses: actions/checkout@v4 with: @@ -21,12 +21,17 @@ jobs: - name: Get list of all changes uses: tj-actions/changed-files@v42 id: changed-files + with: + files: | + src/** + .github/** + README.md build-pdf: name: Build Resume PDF runs-on: ubuntu-22.04 needs: [get-changed-files] - if: contains(needs.get-changed-files.outputs.changed-files, 'src/Resume.svg') + if: needs.get-changed-files.outputs.changed-files == 'true' steps: - name: Checkout Repo uses: actions/checkout@v3