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