Skip to content

Commit

Permalink
show diff
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Apr 20, 2021
1 parent 72c3bbc commit 88601b1
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -1993,7 +1993,7 @@ def githubComment():
},
"when": {
"status": [
"failure",
"failure",
],
"event": [
"pull_request",
Expand All @@ -2006,15 +2006,32 @@ def checkStarlark():
"kind": "pipeline",
"type": "docker",
"name": "check-starlark",
"steps": [{
"name": "lint-starlark",
"image": "owncloudci/golang:1.16",
"pull": "always",
"commands": [
"go install github.com/bazelbuild/buildtools/buildifier@latest",
"buildifier /drone/src/.drone.star",
],
}],
"steps": [
{
"name": "format-check-starlark",
"image": "owncloudci/golang:1.16",
"pull": "always",
"commands": [
"go install github.com/bazelbuild/buildtools/buildifier@latest",
"buildifier --mode=check /drone/src/.drone.star",
],
},
{
"name": "show-diff",
"image": "owncloudci/golang:1.16",
"pull": "always",
"commands": [
"go install github.com/bazelbuild/buildtools/buildifier@latest",
"buildifier --mode=fix /drone/src/.drone.star",
"/drone/src/ && git diff",
],
"when": {
"status": [
"failure",
],
},
},
],
"depends_on": [],
"trigger": {
"ref": [
Expand Down

0 comments on commit 88601b1

Please sign in to comment.