diff --git a/.gitea/workflows/unicode_check.yaml b/.gitea/workflows/unicode_check.yaml index bf8aa3b..cf9c815 100644 --- a/.gitea/workflows/unicode_check.yaml +++ b/.gitea/workflows/unicode_check.yaml @@ -21,7 +21,8 @@ jobs: echo "Initial commit: ${{ github.event.pull_request.base.sha }}" echo "Final commit: ${{ github.event.pull_request.head.sha }}" while read LINE; do - F="$F \"${LINE}\"" + LINE=$(printf %q "$LINE") + F="$F ${LINE}" done < <(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} content/ | grep \.md$) echo "File list:" echo "$F" @@ -36,11 +37,13 @@ jobs: echo $FILELIST - name: Markdown Lint - # env: - # FILELIST: ${{ steps.file-lister.outputs.FILELIST }} + env: + FILELIST: ${{ steps.file-lister.outputs.FILELIST }} uses: nosborn/github-action-markdown-cli@v3.3.0 with: - files: "${{ steps.file-lister.outputs.FILELIST }}" + files: "${{ env.FILELIST }}" + entrypoint: /bin/sh + args: -c 'set' config_file: .markdownlint.yaml dot: false # rules: examples/rules/custom.js