From 14b9cd568dc0f62f664546deb13166424303cfbf Mon Sep 17 00:00:00 2001
From: Chase Qi <chase.qi@linaro.org>
Date: Thu, 16 Dec 2021 14:56:44 +0800
Subject: [PATCH] ci: skip aggregate-docs job for scheduled pipeline

The job always fail due to permission issue, and there is no need to
run the job for scheduled pipelines.

Signed-off-by: Chase Qi <chase.qi@linaro.org>
---
 .oniro-ci/build-generic.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.oniro-ci/build-generic.yaml b/.oniro-ci/build-generic.yaml
index 1f05c5fd..3cdb8aa6 100644
--- a/.oniro-ci/build-generic.yaml
+++ b/.oniro-ci/build-generic.yaml
@@ -322,6 +322,8 @@
   stage: deploy
   trigger: distro/docs
   rules:
+    - if: '$CI_PIPELINE_SOURCE == "schedule"'
+      when: never
     # Update the documentation when things land in the default branch.
     - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
       changes:
-- 
GitLab