summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/encoding-check.yml8
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