[O] Only repackage if non-comment files changed

pull/50/head
Azalea Gui 2023-01-05 12:43:35 -05:00
parent c256e03517
commit 4ece2e4652
No known key found for this signature in database
GPG Key ID: E289FAC0DA92DD2B
1 changed files with 10 additions and 2 deletions

View File

@ -47,10 +47,18 @@ jobs:
with:
branch: gh-pages
folder: dist
- name: Check for document changes, ignoring comments
uses: dorny/paths-filter@v2
id: changes
with:
filters: |
src:
- 'people/**/*[!.json]'
- name: Trigger web repackage
uses: actions/github-script@v6
if: steps.changes.outputs.src == 'true'
with:
github-token: ${{ secrets.GH_PERSONAL_TOKEN }}
script: |