mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-11-15 16:21:07 +07:00
e3f3ba4f86
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
77 lines
2.1 KiB
YAML
77 lines
2.1 KiB
YAML
name: Test action
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- README.md
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
max-parallel: 1
|
|
matrix:
|
|
include:
|
|
- subject: Plain body (attachment)
|
|
attachments: action.yml
|
|
body: |
|
|
first line
|
|
second line
|
|
- subject: HTML body (attachments)
|
|
attachments: package.json,package-lock.json
|
|
html_body: |
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<h1>Heading</h1>
|
|
<p>Paragraph</p>
|
|
</body>
|
|
</html>
|
|
- subject: file://testdata/subject.txt
|
|
convert_markdown: true
|
|
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
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Send mail
|
|
uses: ./
|
|
with:
|
|
server_address: ${{secrets.ADDRESS}}
|
|
server_port: 465
|
|
username: ${{secrets.USERNAME}}
|
|
password: ${{secrets.PASSWORD}}
|
|
subject: ${{matrix.subject}}
|
|
body: ${{matrix.body}}
|
|
html_body: ${{matrix.html_body}}
|
|
to: ${{github.event.pusher.email}}
|
|
from: github-actions
|
|
attachments: ${{matrix.attachments}}
|
|
convert_markdown: ${{matrix.convert_markdown}}
|
|
priority: high
|
|
|
|
url-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Send mail
|
|
uses: ./
|
|
with:
|
|
connection_url: smtp+starttls://${{secrets.USERNAME}}:${{secrets.PASSWORD}}@${{secrets.ADDRESS}}/
|
|
subject: Plain body with connection_url
|
|
body: |
|
|
first line
|
|
second line
|
|
to: ${{github.event.pusher.email}}
|
|
from: github-actions
|