summary refs log tree commit diff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2021-04-28 20:07:05 +0200
committerDomen Kožar <domen@dev.si>2021-04-29 10:14:40 +0200
commit77215825ded540a994c5299b016d2e2c010c3940 (patch)
treeed497cba178a7caa83d9e2a01fc551fb14668a71 /.github/workflows
parent433df32ddb83a90f95c7b37c6fd6b68d46cb9100 (diff)
editorconfig check: avoid channels as they might break one day
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/editorconfig.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml
index a6e9eb8718bd4..4960e9fd3d23e 100644
--- a/.github/workflows/editorconfig.yml
+++ b/.github/workflows/editorconfig.yml
@@ -3,6 +3,7 @@ name: "Checking EditorConfig"
 permissions: read-all
 
 on:
+  # avoids approving first time contributors
   pull_request_target:
     branches-ignore:
       - 'release-**'
@@ -29,11 +30,11 @@ jobs:
       if: env.PR_DIFF
     - uses: cachix/install-nix-action@v13
       if: env.PR_DIFF
-    - name: install editorconfig-checker from unstable channel
-      run: |
-        nix-channel --add https://nixos.org/channels/nixpkgs-unstable
-        nix-channel --update
-        nix-env -iA nixpkgs.editorconfig-checker
+      with:
+        # nixpkgs commit is pinned so that it doesn't break
+        nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/f93ecc4f6bc60414d8b73dbdf615ceb6a2c604df.tar.gz
+    - name: install editorconfig-checker
+      run: nix-env -iA editorconfig-checker -f '<nixpkgs>'
       if: env.PR_DIFF
     - name: Checking EditorConfig
       if: env.PR_DIFF