diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-08-03 08:01:50 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-08-04 00:35:50 +1000 |
commit | c1fce8f814830a5ce1f381158d315323fc01700b (patch) | |
tree | 979d59643c92c054c471e268dafccb8b0d9ff54e /.github | |
parent | 588940d405de503d60751bfe965fe772cbb91bde (diff) | |
download | nixpkgs-c1fce8f814830a5ce1f381158d315323fc01700b.tar nixpkgs-c1fce8f814830a5ce1f381158d315323fc01700b.tar.gz nixpkgs-c1fce8f814830a5ce1f381158d315323fc01700b.tar.bz2 nixpkgs-c1fce8f814830a5ce1f381158d315323fc01700b.tar.lz nixpkgs-c1fce8f814830a5ce1f381158d315323fc01700b.tar.xz nixpkgs-c1fce8f814830a5ce1f381158d315323fc01700b.tar.zst nixpkgs-c1fce8f814830a5ce1f381158d315323fc01700b.zip |
.github/workflows/editorconfig.yml: separate fetch and check steps
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/editorconfig.yml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml index 86b89a3f558..31b93de7c1c 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 }} |