chore: add watch for nightly cron to .drone.yml
This commit is contained in:
parent
50ea242c33
commit
0247a036a9
18
.drone.yml
18
.drone.yml
@ -248,17 +248,11 @@ clone:
|
|||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event: cron
|
||||||
- cron
|
cron: [hourly, nightly]
|
||||||
cron:
|
status: [success, failure]
|
||||||
- hourly
|
|
||||||
- hourly-build
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
- failure
|
|
||||||
|
|
||||||
depends_on:
|
depends_on: deploy
|
||||||
- deploy
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: discord
|
- name: discord
|
||||||
@ -267,11 +261,11 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
message: >
|
message: >
|
||||||
{{#success build.status}}
|
{{#success build.status}}
|
||||||
✅ [Hourly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` has been successfully deployed.
|
✅ [Cron build #{{build.number}}]({{build.link}}) of `{{repo.name}}` has been successfully deployed.
|
||||||
event: **`{{build.event}}`**
|
event: **`{{build.event}}`**
|
||||||
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
||||||
{{else}}
|
{{else}}
|
||||||
❌ [Hourly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed to deploy.
|
❌ [Cron build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed to deploy.
|
||||||
event: **`${DRONE_BUILD_EVENT}`**
|
event: **`${DRONE_BUILD_EVENT}`**
|
||||||
failed stage(s): **`${DRONE_FAILED_STAGES}`**
|
failed stage(s): **`${DRONE_FAILED_STAGES}`**
|
||||||
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
||||||
|
Loading…
Reference in New Issue
Block a user