You've already forked ansible-role-auth-duo
This commit is contained in:
18
.woodpecker/cron-ntfy.yml
Normal file
18
.woodpecker/cron-ntfy.yml
Normal 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 ]
|
||||
@@ -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"'
|
||||
|
||||
Reference in New Issue
Block a user