Skip to content

Commit 15d6d85

Browse files
committed
fix: .woodpecker.yml when reshape
1 parent 4945970 commit 15d6d85

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

live-demo/deploy/.woodpecker.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
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:

0 commit comments

Comments
 (0)