dawidd6 / action-send-mail

:gear: A GitHub Action to send an email to multiple recipients
MIT License
443 stars 186 forks source link

Support reading the subject from a file. #173

Closed benjyw closed 1 year ago

benjyw commented 1 year ago

Allows dynamic subjects to be generated at action runtime (e.g., "Foobar version 1.2.3 is released", where 1.2.3 is not known at action config time).

Leverages the existing file:// support for body, but renames getBody to getText, in keeping with this expanded role.

dawidd6 commented 1 year ago

Thanks, let's assume this is something more people want :smile:

benjyw commented 1 year ago

Thanks for the quick turnaround! This may be helpful at least to the author of https://github.com/dawidd6/action-send-mail/issues/163 ...

benjyw commented 1 year ago

FWIW you can see this in action (no pun intended) here: https://github.com/pantsbuild/pants/blob/main/src/python/pants_release/generate_github_workflows.py#L1208

Thanks for this nifty action!