summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-02-28 22:23:59 +0200
committerGitHub <noreply@github.com>2023-02-28 22:23:59 +0200
commit31ce09b37790915618e839ed6a728f7b40157fdc (patch)
treef5bded24156fbddfafe335f39e15f1df251d73a6 /.github
parent762fa261501c2cdd9f53832e99160afa55b277d7 (diff)
parent19a122e092517d5530154c7f85117a9840b9125d (diff)
Merge pull request #218858 from cole-h/fixup-editorconfig-action
Fixup editorconfig action with Nix 2.14.0
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/editorconfig.yml4
1 files changed, 1 insertions, 3 deletions
diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml
index 549563d4ec26d..9c3ee597d1cd2 100644
--- a/.github/workflows/editorconfig.yml
+++ b/.github/workflows/editorconfig.yml
@@ -33,11 +33,9 @@ jobs:
         # nixpkgs commit is pinned so that it doesn't break
         # editorconfig-checker 2.4.0
         nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/c473cc8714710179df205b153f4e9fa007107ff9.tar.gz
-    - name: install editorconfig-checker
-      run: nix-env -iA editorconfig-checker -f '<nixpkgs>'
     - name: Checking EditorConfig
       run: |
-        cat "$HOME/changed_files" | xargs -r editorconfig-checker -disable-indent-size
+        cat "$HOME/changed_files" | nix-shell -p editorconfig-checker --run 'xargs -r editorconfig-checker -disable-indent-size'
     - if: ${{ failure() }}
       run: |
         echo "::error :: Hey! It looks like your changes don't follow our editorconfig settings. Read https://editorconfig.org/#download to configure your editor so you never see this error again."