diff --git a/.woodpecker/cron.yml b/.woodpecker/cron.yml index 4882d61..28b7d64 100644 --- a/.woodpecker/cron.yml +++ b/.woodpecker/cron.yml @@ -45,8 +45,7 @@ steps: message: > Test failed run by cron for ${CI_REPO_NAME}. when: - - event: [ cron ] - - status: [ failure ] + evaluate: 'CI_PIPELINE_EVENT == "cron" && CI_PIPELINE_STATUS == "failure"' ntfy-success: image: codeberg.org/l-x/woodpecker-ntfy settings: @@ -58,5 +57,4 @@ steps: message: > Test success when run by cron for ${CI_REPO_NAME}. when: - - event: [ cron ] - - status: [ success ] + evaluate: 'CI_PIPELINE_EVENT == "cron" && CI_PIPELINE_STATUS == "success"'