diff --git a/.woodpecker.star b/.woodpecker.star index e7729e746d..60ae1df362 100644 --- a/.woodpecker.star +++ b/.woodpecker.star @@ -2237,11 +2237,11 @@ def genDocsPr(ctx): "from_secret": "gh-docs-push-key", }, "GIT_SSH_COMMAND": "ssh -o StrictHostKeyChecking=no -i /root/id_rsa", - "OC_GIT_BRANCH": "${CI_COMMIT_BRANCH}", - "MY_TARGET_BRANCH": "${CI_COMMIT_BRANCH##stable-}", + "OC_GIT_BRANCH": "stable-4.0", + "MY_TARGET_BRANCH": "4.0", }, "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', 'git config --global user.email "devops@opencloud.eu"', 'git config --global user.name "openclouders"', @@ -2269,6 +2269,10 @@ def genDocsPr(ctx): "branch": "[main]", "cron": "nightly *", }, + { + "event": "push", + "branch": "stablecitest-12.3.4", + }, ], }]