mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-11-10 14:01:06 +07:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Test action
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
max-parallel: 1
|
|
matrix:
|
|
content_type:
|
|
- text/plain
|
|
- text/html
|
|
include:
|
|
- content_type: text/plain
|
|
body: file://README.md
|
|
attachments: action.yml
|
|
- content_type: text/html
|
|
body: |
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<h1>Heading</h1>
|
|
<p>Paragraph</p>
|
|
</body>
|
|
</html>
|
|
attachments: package.json,package-lock.json
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v1
|
|
- 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}}
|
|
attachments: ${{matrix.attachments}}
|