mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-02 19:11:53 +00:00
ci: update editorconfig check
This commit is contained in:
parent
e7d5e6c4ac
commit
f3f818656d
1 changed files with 2 additions and 4 deletions
6
.github/workflows/check.yml
vendored
6
.github/workflows/check.yml
vendored
|
@ -119,7 +119,7 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh api \
|
||||
repos/notashelf/nvf/pulls/${{github.event.number}}/files --paginate \
|
||||
repos/${{ github.repository }}/pulls/${{ github.event.number }}/files --paginate \
|
||||
| jq '.[] | select(.status != "removed") | .filename' \
|
||||
> "$HOME/changed_files"
|
||||
|
||||
|
@ -138,9 +138,7 @@ jobs:
|
|||
- name: Checking EditorConfig
|
||||
shell: bash
|
||||
run: |
|
||||
cat "$HOME/changed_files" | nix-shell -p editorconfig-checker.out \
|
||||
--run 'xargs -r editorconfig-checker -disable-indentation -exclude flake.lock --verbose'
|
||||
echo -n "Check status: $?"
|
||||
< "$HOME/changed_files" nix-shell -p editorconfig-checker --run 'xargs -r editorconfig-checker -disable-indent-size'
|
||||
|
||||
- if: ${{ failure() }}
|
||||
shell: bash
|
||||
|
|
Loading…
Add table
Reference in a new issue