mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-11-10 05:51:07 +07:00
41 lines
1016 B
YAML
41 lines
1016 B
YAML
name: Test action
|
|
|
|
on: push
|
|
|
|
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
|
|
- content_type: text/html
|
|
body: |
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<h1>Heading</h1>
|
|
<p>Paragraph</p>
|
|
</body>
|
|
</html>
|
|
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 <${{secrets.FROM}}>
|
|
content_type: ${{matrix.content_type}}
|