[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: validate-pr-files:
when: when:
not: not:
equal: [ << pipeline.parameters.is_branch_update >>, "yes"] equal: [<< pipeline.parameters.is_branch_update >>, "yes"]
jobs: jobs:
- "Validate PR" - "Validate PR"
- "Validate Documentation" - "Validate Documentation"
update-documentation: update-documentation:
when: when:
and: and:
- equal: [ << pipeline.parameters.is_branch_update >>, "yes"] - equal: [<< pipeline.parameters.is_branch_update >>, "yes"]
- equal: [ << pipeline.git.branch >>, "develop"] - equal: [<< pipeline.git.branch >>, "develop"]
- equal: [<< pipeline.parameters.prj_url >>, << pipeline.project.git_url >>]
jobs: jobs:
- "Update documentation files" - "Update documentation files"
update-built-in: update-built-in:
when: when:
equal: [ << pipeline.parameters.is_branch_update >>, "yes"] equal: [<< pipeline.parameters.prj_url >>, << pipeline.project.git_url >>]
triggers: triggers:
- schedule: - schedule:
cron: "0 0,6,12,18 * * *" cron: "0 0,6,12,18 * * *"