From 25822c70377394aca02dd7c0d9fcb721c446633f Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Mon, 16 Oct 2023 20:48:27 +1300 Subject: [PATCH] [SKIP CI] Tweak notifications --- .woodpecker/{cron-ntfy.yml => z.cron-ntfy.yml} | 5 +++-- .woodpecker/z.failed-cron-ntfy.yml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) rename .woodpecker/{cron-ntfy.yml => z.cron-ntfy.yml} (79%) create mode 100644 .woodpecker/z.failed-cron-ntfy.yml diff --git a/.woodpecker/cron-ntfy.yml b/.woodpecker/z.cron-ntfy.yml similarity index 79% rename from .woodpecker/cron-ntfy.yml rename to .woodpecker/z.cron-ntfy.yml index 4b4b9d7..2f3c535 100644 --- a/.woodpecker/cron-ntfy.yml +++ b/.woodpecker/z.cron-ntfy.yml @@ -8,9 +8,10 @@ steps: title: notification title priority: urgent icon: https://woodpecker-ci.org/img/logo.svg - tags: robot,${CI_BUILD_EVENT},${CI_REPO_NAME} + tags: robot,heavy_check_mark,${CI_BUILD_EVENT},${CI_REPO_NAME} message: > Test success when run by cron for ${CI_REPO_NAME}. depends_on: - "cron" -runs_on: [ success ] \ No newline at end of file +runs_on: [ success ] + diff --git a/.woodpecker/z.failed-cron-ntfy.yml b/.woodpecker/z.failed-cron-ntfy.yml new file mode 100644 index 0000000..5b88cdc --- /dev/null +++ b/.woodpecker/z.failed-cron-ntfy.yml @@ -0,0 +1,16 @@ +skip_clone: true + +steps: + ntfy-failed: + image: codeberg.org/l-x/woodpecker-ntfy + settings: + url: https://ntfy.cybercinch.nz/ci-status + title: Build failed on ${CI_REPO_NAME} + priority: urgent + icon: https://woodpecker-ci.org/img/logo.svg + tags: robot,rotating_light,no_entry,${CI_BUILD_EVENT},${CI_REPO_NAME} + message: > + Test failed when run by cron for ${CI_REPO_NAME}. +depends_on: + - "cron" +runs_on: [ failure ] \ No newline at end of file