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 ]