From a93570436815a3694fcb77f0e8e4833761f699f0 Mon Sep 17 00:00:00 2001 From: Michael 'Flimmy' Flemming Date: Thu, 15 Jan 2026 11:22:34 +0100 Subject: [PATCH] add prefix removal for stable branches in docs gen pipeline --- .woodpecker.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.star b/.woodpecker.star index faa4a6423a..44d76c5278 100644 --- a/.woodpecker.star +++ b/.woodpecker.star @@ -2238,7 +2238,7 @@ def genDocsPr(ctx): }, "GIT_SSH_COMMAND": "ssh -o StrictHostKeyChecking=no -i /root/id_rsa", "OC_GIT_BRANCH": "${CI_COMMIT_BRANCH}", - "MY_TARGET_BRANCH": "${CI_COMMIT_BRANCH}", + "MY_TARGET_BRANCH": "${CI_COMMIT_BRANCH##stable-}", }, "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)"',