send-mail/.github/workflows/test.yml
2020-07-20 07:31:58 +02:00

44 lines
1.1 KiB
YAML

name: Test action
on:
push:
branches:
- master
jobs:
main:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
include:
- content_type: text/markdown
body: file://README.md
attachments: action.yml
- content_type: text/html
body: |
<!DOCTYPE html>
<html>
<body>
<h1>Heading</h1>
<p>Paragraph</p>
</body>
</html>
attachments: package.json,package-lock.json
steps:
- name: Checkout code
uses: actions/checkout@v2
- 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}}
attachments: ${{matrix.attachments}}