We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10486c5 commit cabf2a3Copy full SHA for cabf2a3
live-demo/deploy/.woodpecker.yml
@@ -26,13 +26,13 @@ steps:
26
27
slack-on-failure:
28
# use curl because the plugin can't interpolate template
29
+ when:
30
+ - event: push
31
image: curlimages/curl
32
when:
- - status: failure
- event: push
33
34
commands:
35
- - cd live-demo/deploy && /bin/sh failToSlack.sh
+ - cd live-demo/deploy && /bin/sh buildSlackNotify.sh
36
37
secrets:
38
- DEVELOPERS_SLACK_WEBHOOK
live-demo/deploy/failToSlack.sh live-demo/deploy/buildSlackNotify.shlive-demo/deploy/failToSlack.sh renamed to live-demo/deploy/buildSlackNotify.sh
@@ -1,5 +1,7 @@
1
#!/bin/sh
2
3
+env
4
+
5
export BUILD_LOG=$(cat ../../adminforth/build.log)
6
7
COMMIT_SHORT_SHA=$(echo $CI_COMMIT_SHA | cut -c1-8)
0 commit comments