File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ jobs:
25
25
- name : detect changed files
26
26
run : |
27
27
changed_files="$(mktemp)"
28
- git diff --diff-filter=d --name-only --no-renames master >"$changed_files"
28
+ git diff --diff-filter=d --name-only --no-renames -z master >"$changed_files"
29
29
printf 'CHANGED_FILES=%s\n' "$changed_files" >>"$GITHUB_ENV"
30
30
31
31
- name : check file sizes
32
- run : xargs -r meta/check-file-sizes.sh <"$CHANGED_FILES"
32
+ run : xargs -0r meta/check-file-sizes.sh <"$CHANGED_FILES"
33
33
34
34
- name : set up Node.js
35
35
id : setup-node
52
52
- name : run remark on changed files
53
53
if : ${{ !contains(github.event.pull_request.body, 'SKIP_REMARK') }}
54
54
run : |
55
- grep '\.md$' <"$CHANGED_FILES" | \
56
- REPORTER=vfile-reporter-github-action xargs -r meta/remark.sh
55
+ grep -z '\.md$' <"$CHANGED_FILES" | \
56
+ REPORTER=vfile-reporter-github-action xargs -0r meta/remark.sh
57
57
58
58
- name : set up Python
59
59
uses : actions/setup-python@v4
Original file line number Diff line number Diff line change @@ -44,15 +44,15 @@ run_test() {
44
44
45
45
cd -- " $( dirname " $0 " ) /.."
46
46
47
- changed_files=" $(
48
- {
49
- git diff --diff-filter=d --name-only --no-renames master
50
- git ls-files --exclude-standard --others
51
- } | sort -u
52
- ) "
53
-
54
- printf ' %s\n ' " $changed_files " | run_test ' file size' xargs -r meta/check-file-sizes.sh
55
- printf ' %s\n ' " $changed_files " | grep ' \.md$ ' | run_test Remark xargs -r meta/remark.sh
47
+ changed_files=" $( mktemp ) "
48
+ {
49
+ git diff --diff-filter=d --name-only --no-renames -z master
50
+ git ls-files --exclude-standard --others -z
51
+ } | \
52
+ sort -uz > " $changed_files "
53
+
54
+ run_test ' file size' xargs -0r meta/check-file-sizes.sh < " $changed_files "
55
+ grep -z ' \.md$ ' < " $changed_files " | run_test Remark xargs -0r meta/remark.sh
56
56
run_test ' YAML style' osu-wiki-tools check-yaml
57
57
run_test link osu-wiki-tools check-links --all
58
58
You can’t perform that action at this time.
0 commit comments