mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 14:55:59 +01:00
CI: use DetSys Nix installer
This commit is contained in:
parent
e583a3596e
commit
a4de8ea0b4
1 changed files with 5 additions and 8 deletions
13
.github/workflows/editorconfig.yml
vendored
13
.github/workflows/editorconfig.yml
vendored
|
@ -8,14 +8,14 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
check-editorconfig:
|
check-editorconfig:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "!contains(github.event.pull_request.title, '[skip treewide]')"
|
if: "!contains(github.event.pull_request.title, '[skip ci]')"
|
||||||
steps:
|
steps:
|
||||||
- name: Get list of changed files from PR
|
- name: Get list of changed files from PR
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
gh api \
|
gh api \
|
||||||
repos/NixOS/nixpkgs/pulls/${{github.event.number}}/files --paginate \
|
repos/notashelf/neovim-flake/pulls/${{github.event.number}}/files --paginate \
|
||||||
| jq '.[] | select(.status != "removed") | .filename' \
|
| jq '.[] | select(.status != "removed") | .filename' \
|
||||||
> "$HOME/changed_files"
|
> "$HOME/changed_files"
|
||||||
|
|
||||||
|
@ -29,15 +29,12 @@ jobs:
|
||||||
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v23
|
uses: DeterminateSystems/nix-installer-action@main
|
||||||
with:
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
# 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: Checking EditorConfig
|
- name: Checking EditorConfig
|
||||||
run: |
|
run: |
|
||||||
cat "$HOME/changed_files" | nix-shell -p editorconfig-checker --run 'xargs -r editorconfig-checker -disable-indent-size'
|
cat "$HOME/changed_files" | nix-shell -p editorconfig-checker.out --run 'xargs -r editorconfig-checker -disable-indent-size'
|
||||||
|
|
||||||
- if: ${{ failure() }}
|
- if: ${{ failure() }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue