From 4ece2e4652e6c443fb61d2fc898c36057f482638 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Thu, 5 Jan 2023 12:43:35 -0500 Subject: [PATCH] [O] Only repackage if non-comment files changed --- .github/workflows/generator.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generator.yml b/.github/workflows/generator.yml index 4e9b46d2..f55a44c1 100644 --- a/.github/workflows/generator.yml +++ b/.github/workflows/generator.yml @@ -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: |