Merge pull request #218858 from cole-h/fixup-editorconfig-action

Fixup editorconfig action with Nix 2.14.0

authored by Weijia Wang and committed by GitHub 31ce09b3 762fa261

+1 -3
+1 -3
.github/workflows/editorconfig.yml
··· 33 # nixpkgs commit is pinned so that it doesn't break 34 # editorconfig-checker 2.4.0 35 nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/c473cc8714710179df205b153f4e9fa007107ff9.tar.gz 36 - - name: install editorconfig-checker 37 - run: nix-env -iA editorconfig-checker -f '<nixpkgs>' 38 - name: Checking EditorConfig 39 run: | 40 - cat "$HOME/changed_files" | xargs -r editorconfig-checker -disable-indent-size 41 - if: ${{ failure() }} 42 run: | 43 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."
··· 33 # nixpkgs commit is pinned so that it doesn't break 34 # editorconfig-checker 2.4.0 35 nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/c473cc8714710179df205b153f4e9fa007107ff9.tar.gz 36 - name: Checking EditorConfig 37 run: | 38 + cat "$HOME/changed_files" | nix-shell -p editorconfig-checker --run 'xargs -r editorconfig-checker -disable-indent-size' 39 - if: ${{ failure() }} 40 run: | 41 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."