mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
ci: show formatter changes on failure
This commit is contained in:
@@ -110,7 +110,7 @@ jobs:
|
|||||||
PUSH_BASE_SHA: ${{ github.event.before }}
|
PUSH_BASE_SHA: ${{ github.event.before }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -uo pipefail
|
||||||
case "${{ github.event_name }}" in
|
case "${{ github.event_name }}" in
|
||||||
pull_request)
|
pull_request)
|
||||||
nix run .#check -- fast --base "$PR_BASE_SHA"
|
nix run .#check -- fast --base "$PR_BASE_SHA"
|
||||||
@@ -122,6 +122,11 @@ jobs:
|
|||||||
nix run .#check -- fast --all-files
|
nix run .#check -- fast --all-files
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
status=$?
|
||||||
|
if (( status != 0 )); then
|
||||||
|
git diff -- .
|
||||||
|
exit "$status"
|
||||||
|
fi
|
||||||
- name: Evaluate configurations
|
- name: Evaluate configurations
|
||||||
if: steps.plan.outputs.nix_validation == 'true' || github.event_name == 'workflow_dispatch'
|
if: steps.plan.outputs.nix_validation == 'true' || github.event_name == 'workflow_dispatch'
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user