Skip to content

Commit

Permalink
don't try to reuse cron's MAILTO env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cdzombak committed Oct 24, 2023
1 parent 60f7c1e commit fd00bd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ If you plan to use the `RUNNER_OUTFD_PID` and `RUNNER_OUTFD_STD[OUT|ERR]` variab
- `-mail-tab-char string`: Replace tab characters in emailed output by this string.
- Can also be set by the `RUNNER_MAIL_TAB_CHAR` environment variable; this flag overrides the environment variable.
- `-mailto string`: Send an email to the given address if the program fails or its output would otherwise be printed per `-healthy-exit`/`-print-if-[not]-match`/`-always-print`.
- Can also be set by the `MAILTO` environment variable; this flag overrides the environment variable.
- Can also be set by the `RUNNER_MAILTO` environment variable; this flag overrides the environment variable.
- `-smtp-host string`: SMTP server hostname.
- Can also be set by the `RUNNER_SMTP_HOST` environment variable; this flag overrides the environment variable.
- `-smtp-pass string`: Password for SMTP authentication.
Expand Down
2 changes: 1 addition & 1 deletion runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var version = "<dev>"

// Environment variables supported by runner:
const (
MailToEnvVar = "MAILTO"
MailToEnvVar = "RUNNER_MAILTO"
MailFromEnvVar = "RUNNER_MAIL_FROM"
SMTPUserEnvVar = "RUNNER_SMTP_USER"
SMTPPassEnvVar = "RUNNER_SMTP_PASS"
Expand Down

0 comments on commit fd00bd4

Please sign in to comment.