conf: action notify [test]

hotfix/paypal-note
Lei OT 2 years ago
parent d7841fc9c8
commit 03bc01db06

@ -128,32 +128,50 @@ jobs:
echo " - ${{ env.GIT_COMMIT_MESSAGE_SUBJECT_SANITIZED }}"
echo " - ${{ env.GIT_COMMIT_MESSAGE_BODY }}"
- name: Send email
uses: devellany/send-mail@v1.0.2
- name: Send some mail
uses: dawidd6/action-send-mail@v3
with:
host: smtp.qiye.aliyun.com
# Optional port (defaults to 465)
port: 465
account: ${{secrets.MAIL_USERNAME}}
# Specify connection via URL (replaces server_address, server_port, secure,
# username and password)
#
# Format:
#
# * smtp://user:password@server:port
# * smtp+starttls://user:password@server:port
# connection_url: ${{secrets.MAIL_CONNECTION}}
# Required mail server address if not connection_url:
server_address: smtp.qiye.aliyun.com
# Server port, default 25:
server_port: 465
# Optional whether this connection use TLS (default is true if server_port is 465)
secure: true
# Optional (recommended) mail server username:
username: ${{secrets.MAIL_USERNAME}}
# Optional (recommended) mail server password:
password: ${{secrets.MAIL_PASSWORD}}
sender: Git
from: ${{secrets.MAIL_USERNAME}}
to: ${{ env.GIT_COMMIT_COMMITTER_EMAIL }}, lyt@hainatravel.com
# Required mail subject:
subject: Deploy ${{env.WORKFLOW_CONCLUSION}}
body: ${{env.WORKFLOW_CONCLUSION}} , ${{env.GIT_COMMIT_MESSAGE_SUBJECT}}
# Optional content type (defaults to text/plain)
contentType: text/plain
# Optional attachment files (JSON type. require property 'path')
# attachments: '[{"path":"README.md"}]'
# - name: ✉ Send some mail
# uses: wadeww/send-email-action@master
# with:
# server_address: smtp.qiye.aliyun.com
# port: 25
# username: ${{secrets.MAIL_USERNAME}}
# password: ${{secrets.MAIL_PASSWORD}}
# subject: Deploy ${{env.WORKFLOW_CONCLUSION}}
# body: ${{env.WORKFLOW_CONCLUSION}} , ${{env.GIT_COMMIT_MESSAGE_SUBJECT}}
# to: ${{ env.GIT_COMMIT_COMMITTER_EMAIL }}, lyt@hainatravel.com
# from: Git
# Required recipients' addresses:
to: ${{ env.GIT_COMMIT_COMMITTER_EMAIL }}
# Required sender full name (address can be skipped):
from: Git # <user@example.com>
# Optional plain body:
body: Deploy job of ${{github.repository}} completed ${{env.WORKFLOW_CONCLUSION}}!
# Optional HTML body read from file:
# html_body: file://README.html
# Optional carbon copy recipients:
cc: lyt@hainatravel.com
# Optional blind carbon copy recipients:
# bcc: r2d2@example.com,hansolo@example.com
# Optional recipient of the email response:
# reply_to: luke@example.com
# Optional Message ID this message is replying to:
# in_reply_to: <random-luke@example.com>
# Optional unsigned/invalid certificates allowance:
ignore_cert: true
# Optional converting Markdown to HTML (set content_type to text/html too):
convert_markdown: true
# Optional attachments:
# attachments: attachments.zip,git.diff,./dist/static/*.js
# Optional priority: 'high', 'normal' (default) or 'low'
priority: low

Loading…
Cancel
Save