Skip to content

Commit d32f136

Browse files
committed
fix: update Slack notification script to check previous pipeline status
1 parent b33bd8b commit d32f136

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.woodpecker/buildSlackNotify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -x
55
COMMIT_SHORT_SHA=$(echo $CI_COMMIT_SHA | cut -c1-8)
66

77

8-
if [ "$CI_STEP_STATUS" = "success" ]; then
8+
if [ "$CI_PREV_PIPELINE_STATUS" = "success" ]; then
99
MESSAGE="Did a build without issues on \`$CI_REPO_NAME/$CI_COMMIT_BRANCH\`. Commit: _${CI_COMMIT_MESSAGE}_ (<$CI_COMMIT_URL|$COMMIT_SHORT_SHA>)"
1010

1111
curl -s -X POST -H "Content-Type: application/json" -d '{

.woodpecker/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ steps:
3636
when:
3737
- event: push
3838
status: [failure, success]
39-
- event: push
4039
image: curlimages/curl
4140
commands:
4241
- export $(cat /woodpecker/deploy.vault.env | xargs)

0 commit comments

Comments
 (0)