2019-11-18 19:23:22 +07:00
|
|
|
name: Test action
|
|
|
|
|
2020-04-07 15:42:30 +07:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-07-13 23:24:00 +07:00
|
|
|
paths-ignore:
|
|
|
|
- README.md
|
2020-12-01 00:51:34 +07:00
|
|
|
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:
|
2020-03-24 19:46:09 +07:00
|
|
|
include:
|
2021-04-25 21:20:37 +07:00
|
|
|
- subject: Plain body (attachment)
|
2020-04-07 15:38:01 +07:00
|
|
|
attachments: action.yml
|
2021-04-25 21:20:37 +07:00
|
|
|
body: |
|
|
|
|
first line
|
|
|
|
second line
|
|
|
|
- subject: HTML body (attachments)
|
2020-12-01 00:51:34 +07:00
|
|
|
attachments: package.json,package-lock.json
|
2021-04-25 21:23:58 +07:00
|
|
|
html_body: |
|
2020-03-24 19:46:09 +07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<body>
|
|
|
|
<h1>Heading</h1>
|
|
|
|
<p>Paragraph</p>
|
|
|
|
</body>
|
|
|
|
</html>
|
2021-04-25 21:20:37 +07:00
|
|
|
- subject: Plain body (Markdown)
|
2020-12-01 00:51:34 +07:00
|
|
|
convert_markdown: true
|
2021-04-25 21:20:37 +07:00
|
|
|
body: file://README.md
|
|
|
|
- subject: HTML body (Markdown)
|
|
|
|
convert_markdown: true
|
|
|
|
html_body: file://README.md
|
|
|
|
- subject: Multipart body (Markdown)
|
|
|
|
convert_markdown: true
|
|
|
|
body: file://README.md
|
|
|
|
html_body: file://README.md
|
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}}
|
2021-04-25 21:20:37 +07:00
|
|
|
subject: ${{matrix.subject}}
|
2019-12-06 16:26:00 +07:00
|
|
|
body: ${{matrix.body}}
|
2021-04-25 21:36:40 +07:00
|
|
|
html_body: ${{matrix.html_body}}
|
2020-03-25 21:50:42 +07:00
|
|
|
to: ${{github.event.pusher.email}}
|
2020-03-27 16:06:02 +07:00
|
|
|
from: github-actions
|
2020-04-07 15:38:01 +07:00
|
|
|
attachments: ${{matrix.attachments}}
|
2021-04-25 21:20:37 +07:00
|
|
|
convert_markdown: ${{matrix.convert_markdown}}
|
2021-07-02 23:33:56 +07:00
|
|
|
priority: high
|