Merge pull request #2229 from opencloud-eu/fix_docs_gen_path
fix path and trigger for docsGenPr
This commit is contained in:
+3
-3
@@ -2230,7 +2230,7 @@ def genDocsPr(ctx):
|
|||||||
"MY_TARGET_BRANCH": "${CI_COMMIT_BRANCH##stable-}",
|
"MY_TARGET_BRANCH": "${CI_COMMIT_BRANCH##stable-}",
|
||||||
},
|
},
|
||||||
"commands": [
|
"commands": [
|
||||||
'export DOC_GIT_TARGET_FOLDER="$$(if [ \"$$MY_TARGET_BRANCH\" = \"main\" ]; then echo \"tmpdocs/docs/dev/_static/env-vars/\"; else echo \"tmpdocs/versioned_docs/version-$${MY_TARGET_BRANCH}/dev/_static/env-vars/\"; fi)"',
|
'export DOC_GIT_TARGET_FOLDER="$$(if [ \"$$MY_TARGET_BRANCH\" = \"main\" ]; then echo \"tmpdocs/docs/dev/server/_static/env-vars/\"; else echo \"tmpdocs/versioned_docs/version-$${MY_TARGET_BRANCH}/dev/server/_static/env-vars/\"; fi)"',
|
||||||
'echo "$${CI_SSH_KEY}" > /root/id_rsa && chmod 600 /root/id_rsa',
|
'echo "$${CI_SSH_KEY}" > /root/id_rsa && chmod 600 /root/id_rsa',
|
||||||
'git config --global user.email "devops@opencloud.eu"',
|
'git config --global user.email "devops@opencloud.eu"',
|
||||||
'git config --global user.name "openclouders"',
|
'git config --global user.name "openclouders"',
|
||||||
@@ -2255,8 +2255,8 @@ def genDocsPr(ctx):
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"event": "cron",
|
"event": "cron",
|
||||||
"branch": "[main]",
|
"branch": "main",
|
||||||
"cron": "nightly *",
|
"cron": "nightly*",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}]
|
}]
|
||||||
|
|||||||
Reference in New Issue
Block a user