mirror of
https://gitlab.com/Anson-Projects/projects.git
synced 2025-09-14 09:35:04 +00:00
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
This commit is contained in:
@@ -10,7 +10,8 @@ publish:
|
|||||||
- cd ./ghost-upload
|
- cd ./ghost-upload
|
||||||
- cargo run
|
- cargo run
|
||||||
needs:
|
needs:
|
||||||
- pages
|
- job: pages
|
||||||
|
optional: true
|
||||||
# Temporarily allow all branches for debugging
|
# Temporarily allow all branches for debugging
|
||||||
# rules:
|
# rules:
|
||||||
# - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
# - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
||||||
@@ -24,7 +25,8 @@ force-update-ghost:
|
|||||||
- cd ./ghost-upload
|
- cd ./ghost-upload
|
||||||
- FORCE_UPDATE=true cargo run
|
- FORCE_UPDATE=true cargo run
|
||||||
needs:
|
needs:
|
||||||
- pages
|
- job: pages
|
||||||
|
optional: true
|
||||||
# Temporarily allow all branches for debugging
|
# Temporarily allow all branches for debugging
|
||||||
rules:
|
rules:
|
||||||
- when: manual
|
- when: manual
|
||||||
|
Reference in New Issue
Block a user