File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 1717 commands :
1818 - cd adminforth
1919 - npm clean-install
20- - npm run build > build.log 2>&1 || echo "Build failed. See build.log for details. "
20+ - npm run build > build.log 2>&1"
2121 - npm audit signatures
2222 - npx semantic-release
2323 secrets :
@@ -27,17 +27,20 @@ steps:
2727
2828 slack-on-failure :
2929 image : plugins/slack
30- secrets :
31- - DEVELOPERS_SLACK_WEBHOOK
30+ # when status failure and event push
31+ when :
32+ - event : push
33+ - status : failure
34+
3235 webhook : $DEVELOPERS_SLACK_WEBHOOK
3336 username : Woodpecker CI
3437 icon_url : ${CI_COMMIT_AUTHOR_AVATAR}
3538 template : >
3639 {{repo.name}}/{{build.branch}} - #{{build.number}} {{uppercasefirst build.status}} after {{since build.started}} (<{{build.link}}|Open>)
3740 ```{{ cat build.log | tail -n 50 }}```
38- when :
39- - status : failure
40- - event : push
41+
42+ secrets :
43+ - DEVELOPERS_SLACK_WEBHOOK
4144
4245 build-live-demo :
4346 when :
You can’t perform that action at this time.
0 commit comments