aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/pr-test.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml
index 2ae87adf06..58028b9bdb 100644
--- a/.github/workflows/pr-test.yml
+++ b/.github/workflows/pr-test.yml
@@ -42,6 +42,27 @@ jobs:
run: |
yarn --frozen-lockfile
+ - name: Config git core.quotePath
+ run: |
+ # If you don't do this, the get-diff-action won't be able to
+ # notice files that contain non-ascii characters.
+ # I.e.
+ #
+ # ▶ git status
+ # Changes not staged for commit:
+ # ...
+ # modified: "files/en-us/glossary/b\303\251zier_curve/index.html"
+ #
+ # But after you set `core.quotePath` you get:
+ #
+ # ▶ git status
+ # Changes not staged for commit:
+ # ...
+ # modified: "files/en-us/glossary/bézier_curve/index.html"
+ #
+ # Now, this gets used by the `git diff ...` inside get-diff-action.
+ git config --global core.quotePath false
+
- uses: technote-space/get-diff-action@v4.0.5
id: git_diff_content
with: