[SKIP CI] Use pipelines
All checks were successful
ci/woodpecker/cron/cron Pipeline was successful

This commit is contained in:
2023-10-16 20:29:16 +13:00
parent 45ee1940f3
commit f90f69b0e5
2 changed files with 18 additions and 24 deletions

18
.woodpecker/cron-ntfy.yml Normal file
View File

@@ -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 ]

View File

@@ -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"'