Try CI_BUILD_STATUS var
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/z.ntfy Pipeline was successful

This commit is contained in:
2023-10-18 12:22:29 +13:00
parent 27281a8833
commit 00cf663df3

View File

@@ -12,7 +12,7 @@ steps:
message: >
Test success when run by cron for ${CI_REPO_NAME}.
when:
evaluate: 'CI_PIPELINE_STATUS contains "success"'
evaluate: 'CI_BUILD_STATUS == "pending" || CI_BUILD_STATUS == "success"'
ntfy-failed:
image: codeberg.org/l-x/woodpecker-ntfy
settings:
@@ -24,7 +24,7 @@ steps:
message: >
Test failed when run by cron for ${CI_REPO_NAME}.
when:
evaluate: 'CI_PIPELINE_STATUS contains "failure"'
evaluate: 'CI_BUILD_STATUS == "failure"'
depends_on:
- lint
- test