From c1fce8f814830a5ce1f381158d315323fc01700b Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Mon, 3 Aug 2020 08:01:50 +1000 Subject: .github/workflows/editorconfig.yml: separate fetch and check steps --- .github/workflows/editorconfig.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml index 86b89a3f558f8..31b93de7c1cb0 100644 --- a/.github/workflows/editorconfig.yml +++ b/.github/workflows/editorconfig.yml @@ -13,12 +13,17 @@ jobs: with: fetch-depth: 0 - uses: technote-space/get-diff-action@v2.0.3 - - name: Checking EditorConfig + - name: fetch editorconfig-checker env: VERSION: "2.1.0" OS: "linux" ARCH: "amd64" + ECC_URL: "https://github.com/editorconfig-checker/editorconfig-checker/releases/download" run: | - curl -sSf -O -L -C - https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$VERSION/ec-$OS-$ARCH.tar.gz && \ + curl -sSf -O -L -C - $ECC_URL/$VERSION/ec-$OS-$ARCH.tar.gz && \ tar xzf ec-$OS-$ARCH.tar.gz && \ - ./bin/ec-$OS-$ARCH -disable-indentation ${{ env.GIT_DIFF }} + mv ./bin/ec-$OS-$ARCH ./bin/editorconfig-checker + - name: Checking EditorConfig + run: | + ./bin/editorconfig-checker -disable-indentation \ + ${{ env.GIT_DIFF }} -- cgit 1.4.1