[PATCH] CI: only run pending-updates on master
Ross Burton <[email protected]>
| Newsgroups | org.yoctoproject.lists.meta-arm |
|---|---|
| Message-ID | <[email protected]> |
This job takes a few minutes and isn't useful unless it's being ran for master, or is being actively worked on. Signed-off-by: Ross Burton <[email protected]> --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c06b05e474..d7c214b673 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -253,6 +253,11 @@ musca-s1: pending-updates: extends: .setup + # Only run this job for the default branch (master), or if forced with + # BUILD_FORCE_PENDING_UPDATES. + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + - if: $BUILD_FORCE_PENDING_UPDATES != null artifacts: paths: - update-report -- 2.43.0