From f2b60f0f43c7b1ff5b1692cfc44c3ae81350ff13 Mon Sep 17 00:00:00 2001 From: Andy Caruso Date: Fri, 23 Aug 2024 14:40:42 -0700 Subject: [PATCH] update filtering --- .github/workflows/pr-check.yaml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml index fad04b92..8b88e4d4 100644 --- a/.github/workflows/pr-check.yaml +++ b/.github/workflows/pr-check.yaml @@ -17,23 +17,13 @@ jobs: - id: changed_files name: Changed Files uses: tj-actions/changed-files@v45 - - id: md_changed_files - name: Spellcheck Markdown files - run: |- - files='' - for f in ${{ steps.changed_files.outputs.all }} - do - ext="${f##*.}" - if [ $ext = "md" || $ext = "mdx" ]; - then - files="${f} ${files}" - fi - done - - echo "files=${files}" >> $GITHUB_ENV + with: + # Avoid using single or double quotes for multiline patterns + files: | + **.md* - uses: rojopolis/spellcheck-github-actions@0.41.0 name: Spellcheck - if: ${{ env.files }} + if: ${{ steps.changed_files.outputs.all_changed_files }} with: - source_files: ${{ env.files }} + source_files: ${{ steps.changed_files.outputs.all_changed_files }} task_name: Markdown