Skip to content

Commit 7f9274f

Browse files
committed
use CI_PREV_PIPELINE_STATUS var
1 parent 9f72a26 commit 7f9274f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

live-demo/deploy/.woodpecker.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ steps:
3232
when:
3333
- event: push
3434
status: [failure, success]
35-
- event: push
3635
image: curlimages/curl
3736
commands:
3837
- export $(cat /woodpecker/deploy.vault.env | xargs)

live-demo/deploy/buildSlackNotify.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
COMMIT_SHORT_SHA=$(echo $CI_COMMIT_SHA | cut -c1-8)
55

6+
echo 'CI_PREV_PIPELINE_STATUS', $CI_PREV_PIPELINE_STATUS
67

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

1011

0 commit comments

Comments
 (0)