send-mail/.github/workflows/test.yml

56 lines
1.4 KiB
YAML
Raw Normal View History

2019-11-18 19:23:22 +07:00
name: Test action
on:
push:
branches:
- master
workflow_dispatch:
2019-11-18 19:23:22 +07:00
jobs:
main:
runs-on: ubuntu-latest
2019-12-06 16:26:00 +07:00
strategy:
2020-03-24 20:09:19 +07:00
max-parallel: 1
2019-12-06 16:26:00 +07:00
matrix:
include:
2020-07-20 12:29:26 +07:00
- content_type: text/markdown
attachments: action.yml
body: file://README.md
- content_type: text/html
attachments: package.json,package-lock.json
body: |
<!DOCTYPE html>
<html>
<body>
<h1>Heading</h1>
<p>Paragraph</p>
</body>
</html>
- content_type: text/html
convert_markdown: true
body: |
# h1
## h2
### h3
**bold**
_italics_
- bullet 1
- bullet 2
2019-11-18 19:23:22 +07:00
steps:
2020-03-25 21:58:47 +07:00
- name: Checkout code
2020-07-20 12:31:58 +07:00
uses: actions/checkout@v2
2019-11-18 19:23:22 +07:00
- name: Send mail
uses: ./
with:
server_address: ${{secrets.ADDRESS}}
server_port: 465
username: ${{secrets.USERNAME}}
password: ${{secrets.PASSWORD}}
subject: ${{github.repository}}
2019-12-06 16:26:00 +07:00
body: ${{matrix.body}}
2020-03-25 21:50:42 +07:00
to: ${{github.event.pusher.email}}
from: github-actions
2020-03-25 21:50:42 +07:00
content_type: ${{matrix.content_type}}
convert_markdown: ${{matrix.convert_markdown}}
attachments: ${{matrix.attachments}}