diff options
author | Florian Dieminger <me@fiji-flo.de> | 2021-03-26 17:21:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 12:21:24 -0400 |
commit | c6b7711b11b638c9e7d8f8f9669cf6056847c555 (patch) | |
tree | d537cb80f0c5f0478416866baf9f11305c626863 /.github/workflows | |
parent | e3fe5291dbdedbc6f2489f7d44b64717b000dbde (diff) | |
download | translated-content-c6b7711b11b638c9e7d8f8f9669cf6056847c555.tar.gz translated-content-c6b7711b11b638c9e7d8f8f9669cf6056847c555.tar.bz2 translated-content-c6b7711b11b638c9e7d8f8f9669cf6056847c555.zip |
core.quotePath=false (#332)
so that get-diff-action can cope with non-ascii file paths
See: https://github.com/mdn/content/pull/3381
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/pr-test.yml | 21 |
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: |