git.iko.soy/typeable/nixpkgs
on master help sign in
editorconfig check: avoid channels as they might break one day
commit77215825ded540a994c5299b016d2e2c010c3940 authorDomen Kožar <domen@dev.si> dateWed 28 Apr 2021, 20:07 (6 years ago) parent433df32
1 file changed+6−5
.github/workflows/editorconfig.yml+6−5
.github/workflows/editorconfig.yml+6−5
@@ -3,6 +3,7 @@ name: "Checking EditorConfig"
33permissions: read-all
44
55on:
6+ # avoids approving first time contributors
67 pull_request_target:
78 branches-ignore:
89 - 'release-**'
@@ -29,11 +30,11 @@ jobs:
2930 if: env.PR_DIFF
3031 - uses: cachix/install-nix-action@v13
3132 if: env.PR_DIFF
32− - name: install editorconfig-checker from unstable channel
33− run: |
34− nix-channel --add https://nixos.org/channels/nixpkgs-unstable
35− nix-channel --update
36− nix-env -iA nixpkgs.editorconfig-checker
33+ with:
34+ # nixpkgs commit is pinned so that it doesn't break
35+ nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/f93ecc4f6bc60414d8b73dbdf615ceb6a2c604df.tar.gz
36+ - name: install editorconfig-checker
37+ run: nix-env -iA editorconfig-checker -f '<nixpkgs>'
3738 if: env.PR_DIFF
3839 - name: Checking EditorConfig
3940 if: env.PR_DIFF