workflows: test different content types

This commit is contained in:
Dawid Dziurla 2020-03-24 13:46:09 +01:00
parent fafdc9738d
commit 7f4c9d2837
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -7,9 +7,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
body:
- file://README.md
- Test of action completed successfully!
content_type:
- text/plain
- text/html
- text/markdown
include:
- content_type: text/plain
body: Test of action completed successfully!
- content_type: text/html
body: |
<!DOCTYPE html>
<html>
<body>
<h1>Heading</h1>
<p>Paragraph</p>
</body>
</html>
- content_type: text/markdown
body: file://README.md
steps:
- name: Checkout
uses: actions/checkout@v1
@ -23,4 +38,5 @@ jobs:
subject: ${{github.repository}}
body: ${{matrix.body}}
to: ${{github.event.pusher.email}},${{secrets.USERNAME}}
from: github-actions
from: github-actions
content_type: ${{matrix.content_type}}