fix(mkdocs_build): ensure config file exists when run on branch

!36
This commit is contained in:
2023-05-31 11:41:54 +09:30
parent 9ebd0a27f6
commit c47be42184

View File

@ -28,7 +28,10 @@
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: $CI_COMMIT_TAG
when: on_success
exists:
- "mkdocs.yaml"
- "mkdocs.yml"
when: always
- if: '$CI_COMMIT_BRANCH &&
( $CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "pipeline")'
exists:
@ -51,7 +54,9 @@
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: $CI_COMMIT_TAG
when: on_success
exists:
- "docs/index.md"
when: always
- if: '$CI_COMMIT_BRANCH &&
( $CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "pipeline")'
exists: