mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-13 00:18:06 -05:00
Compare commits
1 Commits
main
...
add_docs_p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f825e8356e |
@@ -576,7 +576,7 @@ def main(ctx):
|
||||
),
|
||||
)
|
||||
|
||||
pipelines = test_pipelines + build_release_pipelines + notifyMatrix(ctx)
|
||||
pipelines = test_pipelines + build_release_pipelines + gen_docs_pr(ctx) + notifyMatrix(ctx)
|
||||
|
||||
pipelineSanityChecks(pipelines)
|
||||
return savePipelineNumber(ctx) + pipelines
|
||||
@@ -2213,6 +2213,55 @@ def makeGoGenerate(module):
|
||||
},
|
||||
]
|
||||
|
||||
def gen_docs_pr(ctx):
|
||||
return [{
|
||||
"name": "gen-docs-pr",
|
||||
"skip_clone": True,
|
||||
"workspace": {
|
||||
"base": "/woodpecker",
|
||||
"path": "docs_gen_pr",
|
||||
},
|
||||
"steps": [
|
||||
# {
|
||||
# "name": "clone",
|
||||
# "image": "woodpeckerci/plugin-git",
|
||||
# "settings": {
|
||||
# "remote": "https://github.com/opencloud-eu/markdown-docs-generator.git",
|
||||
# "path": "/docs_gen_pr",
|
||||
# },
|
||||
# },
|
||||
{
|
||||
"name": "make-docs-pr",
|
||||
"image": "quay.io/opencloudeu/golang-ci",
|
||||
"environment": {
|
||||
"GH_TOKEN": {
|
||||
"from_secret": "github_token",
|
||||
},
|
||||
},
|
||||
"commands": [
|
||||
"gh auth status",
|
||||
"gh repo clone opencloud-eu/markdown-docs-generator /woodpecker/docs_gen_pr"
|
||||
#"make git-clone",
|
||||
#"make all",
|
||||
#"gh auth status",
|
||||
#"make create-docs-pullrequest",
|
||||
]
|
||||
},
|
||||
],
|
||||
"when": [
|
||||
{
|
||||
"event": "push",
|
||||
"branch": "main",
|
||||
"path": "services/*/pkg/config/**/*.go",
|
||||
},
|
||||
{
|
||||
"event": "push",
|
||||
"branch": "add_docs_pr_gen_pipeline",
|
||||
"path": ".woodpecker.star",
|
||||
},
|
||||
],
|
||||
}]
|
||||
|
||||
def notifyMatrix(ctx):
|
||||
result = [{
|
||||
"name": "chat-notifications",
|
||||
|
||||
Reference in New Issue
Block a user