-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (53 loc) · 1.41 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Test action
on:
push:
branches:
- master
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
include:
- 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
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Send mail
uses: ./
with:
server_address: ${{secrets.ADDRESS}}
server_port: 465
username: ${{secrets.GMAIL_USERNAME}}
password: ${{secrets.GMAIL_PASSWORD}}
subject: ${{github.repository}}
body: ${{matrix.body}}
to: ${{ secrets.MAILRU_USERNAME }}
from: github-actions
content_type: ${{matrix.content_type}}
convert_markdown: ${{matrix.convert_markdown}}
attachments: ${{matrix.attachments}}