Skip to content

Commit a10a5f8

Browse files
committed
Fix event hook for notify
1 parent 9c7581c commit a10a5f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.drone.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ notify:
3030
channel: $$SLACK_CHANNEL
3131
username: drone
3232
when:
33-
event: [pull_request]
33+
event: pull_request
3434
template: |
3535
{{#success build.status}}
3636
[{{ repo.name}}] Congrats {{ build.author }}! Your PR works: {{ build.link_url}}
@@ -45,14 +45,14 @@ publish:
4545
checksum:
4646
- md5
4747
when:
48-
event: [tag]
48+
event: tag
4949
notify:
5050
slack:
5151
webhook_url: $$SLACK_WEBHOOK
5252
channel: $$SLACK_CHANNEL
5353
username: drone
5454
when:
55-
event: [tag]
55+
event: tag
5656
template: |
5757
{{#success build.status}}
5858
[{{ repo.name}}/{{ build.branch }}] A new release is available: {{ build.link_url}}

0 commit comments

Comments
 (0)