[ci] refactor

This commit is contained in:
JAremko 2021-07-06 15:56:57 +03:00 committed by Eugene Yaremenko
parent d78d8282f5
commit 968713e749
1 changed files with 5 additions and 4 deletions

View File

@ -118,20 +118,21 @@ workflows:
validate-pr-files:
when:
not:
equal: [ << pipeline.parameters.is_branch_update >>, "yes"]
equal: [<< pipeline.parameters.is_branch_update >>, "yes"]
jobs:
- "Validate PR"
- "Validate Documentation"
update-documentation:
when:
and:
- equal: [ << pipeline.parameters.is_branch_update >>, "yes"]
- equal: [ << pipeline.git.branch >>, "develop"]
- equal: [<< pipeline.parameters.is_branch_update >>, "yes"]
- equal: [<< pipeline.git.branch >>, "develop"]
- equal: [<< pipeline.parameters.prj_url >>, << pipeline.project.git_url >>]
jobs:
- "Update documentation files"
update-built-in:
when:
equal: [ << pipeline.parameters.is_branch_update >>, "yes"]
equal: [<< pipeline.parameters.prj_url >>, << pipeline.project.git_url >>]
triggers:
- schedule:
cron: "0 0,6,12,18 * * *"