mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-12-26 11:03:06 +07:00
workflows: test different content types
This commit is contained in:
parent
fafdc9738d
commit
7f4c9d2837
22
.github/workflows/test.yml
vendored
22
.github/workflows/test.yml
vendored
@ -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
|
||||
@ -24,3 +39,4 @@ jobs:
|
||||
body: ${{matrix.body}}
|
||||
to: ${{github.event.pusher.email}},${{secrets.USERNAME}}
|
||||
from: github-actions
|
||||
content_type: ${{matrix.content_type}}
|
Loading…
Reference in New Issue
Block a user