[#781] Fix scheduled steps filtering
Description
Problem: GitLab CI has slightly confusing rules:if
behaviour.
The step is executed when one of 'if' rules matches unless a rule with
'when: never' is matched. As a result, currently, scheduled docker and
testnets pipelines have the same set of steps to execute.
Solution: Use 'if' with 'when: never' and corresponding 'SCHEDULED_*' env variable to filter scheduled steps properly.
See https://docs.gitlab.com/ee/ci/yaml/#rules
Related issue(s)
Fix for #781 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Roman Melnikov