CI: name the failure step

This commit is contained in:
raf 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

View file

@ -33,10 +33,13 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@main - uses: DeterminateSystems/magic-nix-cache-action@main
- name: Checking EditorConfig - name: Checking EditorConfig
shell: bash
run: | 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 shell: bash
run: | run: |
echo "::error:: Current formatting does not fit convention provided by .editorconfig located in the project root." echo "::error:: Current formatting does not fit convention provided by .editorconfig located in the project root."