mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-11-14 07:41:06 +07:00
2095e6ffe3
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
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@v2
|
|
- name: Send mail
|
|
uses: ./
|
|
with:
|
|
server_address: ${{secrets.ADDRESS}}
|
|
server_port: 465
|
|
username: ${{secrets.USERNAME}}
|
|
password: ${{secrets.PASSWORD}}
|
|
subject: ${{github.repository}}
|
|
body: ${{matrix.body}}
|
|
to: ${{github.event.pusher.email}}
|
|
from: github-actions
|
|
content_type: ${{matrix.content_type}}
|
|
convert_markdown: ${{matrix.convert_markdown}}
|
|
attachments: ${{matrix.attachments}}
|