From 0247a036a9ce12e3721e41597c6eab17a9665e7b Mon Sep 17 00:00:00 2001 From: surtur Date: Sat, 3 Oct 2020 22:41:21 +0200 Subject: [PATCH] chore: add watch for nightly cron to .drone.yml --- .drone.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 08b99be..0724c1e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -248,17 +248,11 @@ clone: disable: true trigger: - event: - - cron - cron: - - hourly - - hourly-build - status: - - success - - failure + event: cron + cron: [hourly, nightly] + status: [success, failure] -depends_on: -- deploy +depends_on: deploy steps: - name: discord @@ -267,11 +261,11 @@ steps: settings: message: > {{#success build.status}} - ✅ [Hourly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` has been successfully deployed. + ✅ [Cron build #{{build.number}}]({{build.link}}) of `{{repo.name}}` has been successfully deployed. event: **`{{build.event}}`** commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}` {{else}} - ❌ [Hourly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed to deploy. + ❌ [Cron build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed to deploy. event: **`${DRONE_BUILD_EVENT}`** failed stage(s): **`${DRONE_FAILED_STAGES}`** commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`