From a583b1148496fdbe20909c45d6c429ed2fea28b4 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Wed, 15 Apr 2026 17:29:35 +0000 Subject: [PATCH] fix: guard manual Woodpecker pipelines with evaluate conditions When GHA triggers a manual pipeline for issue automation, ALL pipelines with event:manual fire. Added evaluate conditions: - issue-automation.yml: only runs when ISSUE_NUMBER is set - provision-user.yml: only runs when ISSUE_NUMBER is NOT set - build-ci-image.yml: only runs when ISSUE_NUMBER is NOT set This prevents build-ci-image from failing on missing registry_password secret when issue automation triggers. [ci skip] Co-Authored-By: Claude Opus 4.6 (1M context) --- .woodpecker/build-ci-image.yml | 9 +++++---- .woodpecker/issue-automation.yml | 3 ++- .woodpecker/provision-user.yml | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.woodpecker/build-ci-image.yml b/.woodpecker/build-ci-image.yml index 95295a27..089b39dd 100644 --- a/.woodpecker/build-ci-image.yml +++ b/.woodpecker/build-ci-image.yml @@ -2,10 +2,11 @@ # Triggers on changes to ci/Dockerfile or manual dispatch. when: - event: [push, manual] - branch: master - path: - include: + - event: [push, manual] + branch: master + evaluate: 'CI_PIPELINE_VARIABLE_ISSUE_NUMBER == ""' + path: + include: - 'ci/Dockerfile' steps: diff --git a/.woodpecker/issue-automation.yml b/.woodpecker/issue-automation.yml index 15ed2774..8fdddc61 100644 --- a/.woodpecker/issue-automation.yml +++ b/.woodpecker/issue-automation.yml @@ -1,5 +1,6 @@ when: - event: manual + - event: manual + evaluate: 'CI_PIPELINE_VARIABLE_ISSUE_NUMBER != ""' clone: git: diff --git a/.woodpecker/provision-user.yml b/.woodpecker/provision-user.yml index 0f6d5dab..52e57461 100644 --- a/.woodpecker/provision-user.yml +++ b/.woodpecker/provision-user.yml @@ -1,5 +1,6 @@ when: - event: manual + - event: manual + evaluate: 'CI_PIPELINE_VARIABLE_ISSUE_NUMBER == ""' clone: git: