From 614cd219b5795e6533176fa0b06480e5057e2c35 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Tue, 22 Feb 2022 18:33:13 +0100 Subject: chore: workflow --- .github/workflows/encoding-check.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.github/workflows') 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 -- cgit