ci(drone.yml): 👷 Refactor build status template in .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ching 2024-02-08 14:44:09 +08:00
parent 433e0e9deb
commit 14877af2a8
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ steps:
content_type: application/json content_type: application/json
template: | template: |
{ {
"title": "Drone Build #{{ build.number }} {{ build.status }} {{#success build.status}}🟢🟢🟢{{else}}🔴🔴🔴{{/success}}", "title": "{{#success build.status}}🟢{{else}}🔴{{/success}} Drone Build #{{ build.number }} {{ build.status }} {{#success build.status}}🟢{{else}}🔴{{/success}}",
"body": "Project: {{ repo.name }}\nBranch: {{ build.branch }}\nCommit: {{ truncate build.commit 8 }}", "body": "Project: {{ repo.name }}\nBranch: {{ build.branch }}\nCommit: {{ truncate build.commit 8 }}",
"group": "drone", "group": "drone",
"url": "{{ build.link }}", "url": "{{ build.link }}",

1
.gitignore vendored
View File

@ -161,3 +161,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
.vscode/settings.json