CI: name the failure step

This commit is contained in:
NotAShelf 2023-10-20 11:52:35 +03:00
parent a4de8ea0b4
commit 1fcdc0b636
No known key found for this signature in database
GPG Key ID: 02D1DD3FA08B6B29
1 changed files with 5 additions and 2 deletions

View File

@ -33,10 +33,13 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Checking EditorConfig
shell: bash
run: |
cat "$HOME/changed_files" | nix-shell -p editorconfig-checker.out --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 --verbose'
echo -n "Check status: $?"
- if: ${{ failure() }}
- name: Fail Gracefully
if: ${{ failure() }}
shell: bash
run: |
echo "::error:: Current formatting does not fit convention provided by .editorconfig located in the project root."