From 0675f1f1b702ca6065a3dde5e2eeee8d4e8ae419 Mon Sep 17 00:00:00 2001 From: Anson Date: Thu, 21 Aug 2025 23:35:36 -0600 Subject: [PATCH] Fix CI dependency issues with needs:optional - Make pages job dependency optional for ghost-upload jobs - Prevents 'job does not exist in pipeline' errors - Allows jobs to run even if pages job is conditionally excluded --- ghost-upload/.gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ghost-upload/.gitlab-ci.yml b/ghost-upload/.gitlab-ci.yml index 507340f..4994e73 100644 --- a/ghost-upload/.gitlab-ci.yml +++ b/ghost-upload/.gitlab-ci.yml @@ -10,7 +10,8 @@ publish: - cd ./ghost-upload - cargo run needs: - - pages + - job: pages + optional: true # Temporarily allow all branches for debugging # rules: # - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" @@ -24,7 +25,8 @@ force-update-ghost: - cd ./ghost-upload - FORCE_UPDATE=true cargo run needs: - - pages + - job: pages + optional: true # Temporarily allow all branches for debugging rules: - when: manual