Skip to content

Commit

Permalink
update filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
carusooo committed Aug 23, 2024
1 parent 585f002 commit f2b60f0
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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

0 comments on commit f2b60f0

Please sign in to comment.