diff --git a/.drone.star b/.drone.star index 338fdbe..cf1d120 100644 --- a/.drone.star +++ b/.drone.star @@ -242,7 +242,7 @@ def main(ctx): { "kind": "pipeline", "type": "docker", - "name": "golangci-lint", + "name": "golangci-lint|godocs", "steps": [ { "name": "golangci-lint", @@ -258,7 +258,7 @@ def main(ctx): ], }, { - "name": "trigger refresh", + "name": "goreportcard refresh", "image": "docker.io/curlimages/curl:7.83.1", "pull": "if-not-exists", "trigger": { @@ -282,6 +282,31 @@ def main(ctx): "https://goreportcard.com/checks " + "-o /dev/null" ] + }, + { + "name": "godocs refresh", + "image": "docker.io/curlimages/curl:7.83.1", + "pull": "if-not-exists", + "trigger": { + "ref": { + "include": [ + "refs/tags/**", + "refs/heads/development" + ], + "exclude": [ + "refs/pull/**" + ] + } + }, + "commands": [ + "uname -r", + "curl --version", + "curl " + + "-sS " + + "-X POST " + + "https://godocs.io/git.dotya.ml/${DRONE_REPO}/refresh " + + "-o /dev/null" + ] } ] }