From cb5d8b89316f8d37f1dd2a82fd758f1cf6fa4634 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 8 Jul 2022 22:36:55 +0200 Subject: [PATCH] ci: ping godocs.io to re-fetch sources --- .drone.star | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) 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" + ] } ] }