This commit is contained in:
Dawid Dziurla
2019-11-18 13:23:22 +01:00
parent 5e251a5fdf
commit cca8b03288
6 changed files with 113 additions and 22 deletions

View File

@ -1,5 +1,19 @@
# Container Action Template
# Send mail Github Action
To get started, click the `Use this template` button on this repository [which will create a new repository based on this template](https://github.blog/2019-06-06-generate-new-repositories-with-repository-templates/).
An action that simply sends a mail to multiple recipients.
For info on how to build your first Container action, see the [toolkit docs folder](https://github.com/actions/toolkit/blob/master/docs/container-action.md).
## Usage
```yaml
- name: Send mail
uses: dawidd6/action-send-mail@master
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: Github Actions job result
body: Build job of ${{github.repository}} completed successfully!
to: obiwan@tatooine.com,yoda@dagobah.com
from: Luke Skywalker
```