diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index 7ffa1dde..c7c1e096 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -128,24 +128,32 @@ jobs: echo " - ${{ env.GIT_COMMIT_MESSAGE_SUBJECT_SANITIZED }}" echo " - ${{ env.GIT_COMMIT_MESSAGE_BODY }}" - - name: ✉ Send some mail - uses: wadeww/send-email-action@master + - name: Send email + uses: devellany/send-mailer@v1.0.2 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 + host: smtp.qiye.aliyun.com + # Optional port (defaults to 465) + port: 465 + account: ${{secrets.MAIL_USERNAME}} + password: ${{secrets.MAIL_PASSWORD}} + sender: Git + from: ${{secrets.MAIL_USERNAME}} + 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 - # - uses: 8398a7/action-slack@v3 + # - name: ✉ Send some mail + # uses: wadeww/send-email-action@master # with: - # # status: ${{ env.WORKFLOW_CONCLUSION }} # neutral, success, skipped, cancelled, timed_out, action_required, failure - # status: failure - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - # if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure + # 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