From ff4807f1f9ad17a3ef0a7324d363a847e496eb92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Mon, 14 Jun 2021 23:36:03 +0200 Subject: [PATCH] Only run on cron --- .drone.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 05e0213d..9ae34541 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,6 +5,9 @@ name: api steps: - name: "Sync upstream to local" image: nixery.dev/shell/git/openssh + when: + event: + - cron environment: GITEA_SSH_KEY: from_secret: gitea_ssh_key @@ -30,6 +33,8 @@ steps: when: status: - success + event: + - cron depends_on: - "Sync upstream to local" environment: @@ -56,6 +61,8 @@ steps: when: status: - success + event: + - cron depends_on: - "Sync core with upstream" settings: @@ -72,6 +79,8 @@ steps: when: status: - failure + event: + - cron depends_on: - "Sync core with upstream" environment: @@ -82,11 +91,13 @@ steps: - echo "$$TEA_CONFIG" > ~/.config/tea/config.yml - tea pulls create --base core --head devos - - name: Notify failure + - name: "Notify failure" image: plugins/matrix when: status: - success + event: + - cron depends_on: - "Open pull request for failed merge" settings: