send-mail/.github/workflows/test.yml

40 lines
1012 B
YAML
Raw Normal View History

2019-11-18 19:23:22 +07:00
name: Test action
2020-03-01 05:01:03 +07:00
on: push
2019-11-18 19:23:22 +07:00
jobs:
main:
runs-on: ubuntu-latest
2019-12-06 16:26:00 +07:00
strategy:
2020-03-24 20:09:19 +07:00
max-parallel: 1
2019-12-06 16:26:00 +07:00
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>
2019-11-18 19:23:22 +07:00
steps:
- name: Checkout
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}}
2019-12-06 16:26:00 +07:00
body: ${{matrix.body}}
2019-12-18 05:44:47 +07:00
to: ${{github.event.pusher.email}},${{secrets.USERNAME}}
from: github-actions
content_type: ${{matrix.content_type}}