workflows: test sending mails with attachments

This commit is contained in:
Dawid Dziurla 2020-04-07 10:38:01 +02:00
parent b75f3336d9
commit c550a7182d
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -14,6 +14,7 @@ jobs:
include:
- content_type: text/plain
body: file://README.md
attachments: action.yml
- content_type: text/html
body: |
<!DOCTYPE html>
@ -23,6 +24,7 @@ jobs:
<p>Paragraph</p>
</body>
</html>
attachments: package.json,package-lock.json
steps:
- name: Checkout code
uses: actions/checkout@v1
@ -38,3 +40,4 @@ jobs:
to: ${{github.event.pusher.email}}
from: github-actions
content_type: ${{matrix.content_type}}
attachments: ${{matrix.attachments}}