Skip to content

Commit

Permalink
fix: subject example
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelact committed Jul 24, 2024
1 parent a217c62 commit 89522fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smtp/smtp.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
delivery:
server: smtp.gmail.com
port: '587'
subject: '{{ if eq .Build.Status 3 }}✅ Build Successful ({{ .Build.Substitutions.REPO_NAME }}){{ else }}❌ Build Failure ({{ .Build.Substitutions.REPO_NAME }}){{ end }} | {{.Build.Substitutions._COMMIT_MESSAGE}}'
subject: '{{ if eq .Build.Status 3 }}✅ Build Successful ({{ .Build.Substitutions.REPO_NAME }}){{ else }}❌ Build Failure ({{ .Build.Substitutions.REPO_NAME }}){{ end }} | {{ if .Build.Substitutions._COMMIT_MESSAGE }} {{ if gt (len .Build.Substitutions._COMMIT_MESSAGE) 100 }}{{ slice .Build.Substitutions._COMMIT_MESSAGE 0 100 }}{{ else }}{{ .Build.Substitutions._COMMIT_MESSAGE }}{{ end }}{{ else }}{{ .Build.Substitutions.COMMIT_SHA }}{{ end }} [...]'
sender: [email protected]
from: [email protected]
recipients:
Expand Down

0 comments on commit 89522fa

Please sign in to comment.