conf: action notify [test]

hotfix/paypal-note
Lei OT 2 years ago
parent 870e37cb19
commit 17a0610ace

@ -128,24 +128,32 @@ jobs:
echo " - ${{ env.GIT_COMMIT_MESSAGE_SUBJECT_SANITIZED }}" echo " - ${{ env.GIT_COMMIT_MESSAGE_SUBJECT_SANITIZED }}"
echo " - ${{ env.GIT_COMMIT_MESSAGE_BODY }}" echo " - ${{ env.GIT_COMMIT_MESSAGE_BODY }}"
- name: Send some mail - name: Send email
uses: wadeww/send-email-action@master uses: devellany/send-mailer@v1.0.2
with: with:
server_address: smtp.qiye.aliyun.com host: smtp.qiye.aliyun.com
port: 25 # Optional port (defaults to 465)
username: ${{secrets.MAIL_USERNAME}} port: 465
password: ${{secrets.MAIL_PASSWORD}} account: ${{secrets.MAIL_USERNAME}}
subject: Deploy ${{env.WORKFLOW_CONCLUSION}} password: ${{secrets.MAIL_PASSWORD}}
body: ${{env.WORKFLOW_CONCLUSION}} , ${{env.GIT_COMMIT_MESSAGE_SUBJECT}} sender: Git
to: ${{ env.GIT_COMMIT_COMMITTER_EMAIL }}, lyt@hainatravel.com from: ${{secrets.MAIL_USERNAME}}
from: Git to: ${{ env.GIT_COMMIT_COMMITTER_EMAIL }}, lyt@hainatravel.com
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"}]'
# # run other action with the workflow conclusion # - name: ✉ Send some mail
# - uses: 8398a7/action-slack@v3 # uses: wadeww/send-email-action@master
# with: # with:
# # status: ${{ env.WORKFLOW_CONCLUSION }} # neutral, success, skipped, cancelled, timed_out, action_required, failure # server_address: smtp.qiye.aliyun.com
# status: failure # port: 25
# env: # username: ${{secrets.MAIL_USERNAME}}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # password: ${{secrets.MAIL_PASSWORD}}
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # subject: Deploy ${{env.WORKFLOW_CONCLUSION}}
# if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure # body: ${{env.WORKFLOW_CONCLUSION}} , ${{env.GIT_COMMIT_MESSAGE_SUBJECT}}
# to: ${{ env.GIT_COMMIT_COMMITTER_EMAIL }}, lyt@hainatravel.com
# from: Git

Loading…
Cancel
Save