Skip to content

Commit

Permalink
chore(ci): update changed file filter (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
wheelerlaw authored Mar 7, 2024
1 parent 72eda42 commit 191fb00
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pdf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,25 @@ 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:
fetch-depth: 2
- 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
Expand Down

0 comments on commit 191fb00

Please sign in to comment.