diff --git a/.woodpecker/cron-ntfy.yml b/.woodpecker/cron-ntfy.yml new file mode 100644 index 0000000..733d4c7 --- /dev/null +++ b/.woodpecker/cron-ntfy.yml @@ -0,0 +1,18 @@ +skip_clone: true + +steps: + 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: + evaluate: 'CI_PIPELINE_EVENT == "cron" && CI_PIPELINE_STATUS == "success"' +depends_on: + - "cron" +runs_on: [ success ] \ No newline at end of file diff --git a/.woodpecker/cron.yml b/.woodpecker/cron.yml index 28b7d64..4eee1b9 100644 --- a/.woodpecker/cron.yml +++ b/.woodpecker/cron.yml @@ -34,27 +34,3 @@ 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: - evaluate: 'CI_PIPELINE_EVENT == "cron" && CI_PIPELINE_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: - evaluate: 'CI_PIPELINE_EVENT == "cron" && CI_PIPELINE_STATUS == "success"'