From c6b7711b11b638c9e7d8f8f9669cf6056847c555 Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Fri, 26 Mar 2021 17:21:24 +0100 Subject: core.quotePath=false (#332) so that get-diff-action can cope with non-ascii file paths See: https://github.com/mdn/content/pull/3381 --- .github/workflows/pr-test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to '.github/workflows') 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: -- cgit v1.2.3-54-g00ecf