diff options
| author | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2022-02-22 18:33:13 +0100 |
|---|---|---|
| committer | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2022-02-22 18:33:13 +0100 |
| commit | 614cd219b5795e6533176fa0b06480e5057e2c35 (patch) | |
| tree | 3fa6e3df456dcfe9b4ae072c3fbb31524a89bbd4 /.github | |
| parent | feea332126fb6e948227cc7f500c6378c9c6957d (diff) | |
| download | wiki-614cd219b5795e6533176fa0b06480e5057e2c35.tar.gz wiki-614cd219b5795e6533176fa0b06480e5057e2c35.tar.bz2 wiki-614cd219b5795e6533176fa0b06480e5057e2c35.zip | |
chore: workflow
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/encoding-check.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/encoding-check.yml b/.github/workflows/encoding-check.yml index 40961db..df37ba9 100644 --- a/.github/workflows/encoding-check.yml +++ b/.github/workflows/encoding-check.yml @@ -1,10 +1,10 @@ # Credit https://github.com/2DegreesInvesting/resources/issues/53 -name: check file encodings in PR +name: File Checker on: [pull_request] jobs: file-encoding: - name: file encooding check + name: Encoding Check runs-on: ubuntu-latest steps: @@ -12,12 +12,12 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: list all changed files + - name: All changed files run: | files=$(git diff --name-only origin/$GITHUB_BASE_REF...${{ github.sha }}) IFS=$'\n'; files=($files); unset IFS; # split the string into an array file --mime "${files[@]}" - - name: list all changed files with the wrong encoding + - name: Files with wrong encoding. run: | files=$(git diff --name-only origin/$GITHUB_BASE_REF...${{ github.sha }}) IFS=$'\n'; files=($files); unset IFS; # split the string into an array |
