From 6be46a5701e466bab10500de1cc0f33fb4c4a102 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Mon, 16 Oct 2023 16:34:42 +1300 Subject: [PATCH] [SKIP CI] update cron definition --- .woodpecker/cron.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.woodpecker/cron.yml b/.woodpecker/cron.yml index 4eee1b9..4882d61 100644 --- a/.woodpecker/cron.yml +++ b/.woodpecker/cron.yml @@ -34,3 +34,29 @@ steps: auth_duo_mirror_url ] when: event: [ cron ] + ntfy-failed: + image: codeberg.org/l-x/woodpecker-ntfy + settings: + url: https://ntfy.cybercinch.nz/ci-status + title: notification title + priority: urgent + icon: https://woodpecker-ci.org/img/logo.svg + tags: robot,${CI_BUILD_EVENT},${CI_REPO_NAME} + message: > + Test failed run by cron for ${CI_REPO_NAME}. + when: + - event: [ cron ] + - status: [ failure ] + ntfy-success: + image: codeberg.org/l-x/woodpecker-ntfy + settings: + url: https://ntfy.cybercinch.nz/ci-status + title: notification title + priority: urgent + icon: https://woodpecker-ci.org/img/logo.svg + tags: robot,${CI_BUILD_EVENT},${CI_REPO_NAME} + message: > + Test success when run by cron for ${CI_REPO_NAME}. + when: + - event: [ cron ] + - status: [ success ]