Skip to content

Commit e3c9118

Browse files
committed
ci(): Print a diff on format failures
Run `git diff` when the format step fails to give the user information on what went wrong.
1 parent 28f55ba commit e3c9118

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.drone.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ steps:
1212
# Disable debugging and profiling
1313
COMPlus_EnableDiagnostics: 0
1414

15+
- name: formatter-diff
16+
image: mcr.microsoft.com/powershell:alpine-3.14
17+
commands:
18+
- apk add --no-cache ca-certificates git
19+
- git diff
20+
when:
21+
status:
22+
- failure
23+
1524
trigger:
1625
ref:
1726
- refs/heads/master

0 commit comments

Comments
 (0)