send-mail/.github/workflows/test.yml
2020-03-27 10:06:02 +01:00

41 lines
996 B
YAML

name: Test action
on: push
jobs:
main:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
content_type:
- text/plain
- text/html
include:
- content_type: text/plain
body: file://README.md
- content_type: text/html
body: |
<!DOCTYPE html>
<html>
<body>
<h1>Heading</h1>
<p>Paragraph</p>
</body>
</html>
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Send mail
uses: ./
with:
server_address: ${{secrets.ADDRESS}}
server_port: 465
username: ${{secrets.USERNAME}}
password: ${{secrets.PASSWORD}}
subject: ${{github.repository}}
body: ${{matrix.body}}
to: ${{github.event.pusher.email}}
from: github-actions
content_type: ${{matrix.content_type}}