Try some cursed Go templating, but it should work this time
continuous-integration/drone/push Build is passing Details

This commit is contained in:
~lucidiot 2022-07-20 19:31:46 +02:00
parent f0670840c7
commit be66a4b1fd
Signed by: lucidiot
GPG Key ID: 3358C1CA6906FB8D
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ steps:
use_sasl: yes
sasl_password:
from_secret: sasl_password
template: 'Updated https://casa.tildepages.org/ - {{ with build.message }}{{ if len . | gt 80 }}{{ slice . 0 80 | printf "%#v" }}{{ else }}{{ printf "%#v" . }}{{ end }}{{ end }} by {{ build.author }} - https://tildegit.org/casa/pages/commit/{{ build.commit }}'
template: 'Updated https://casa.tildepages.org/ - {{ $msg := build.message }}{{ if gt (len $msg) 80 }}{{ $msg = print (slice $msg 0 80) "…" }}{{ end }}{{ printf "%#v" $msg }} by {{ build.author }} - https://tildegit.org/casa/pages/commit/{{ build.commit }}'
when:
status:
- success