dawidd6/action-send-mail

Emailer not rendering markdown table.

Closed this issue · 3 comments

It looks like the emailer cant convert markdown tables as shown below in these Actions steps. I believe this can work by enabling table support in Showdown. Would this be something you could add?

Example:

- name: 'Create email summary'
  run: |
    cat <<EOF > summary.md
    ${{ github.repository }} » ${{ github.workflow }} - ${{ github.job }} - Build #${{ github.run_number }} - Attempt ${{ github.run_attempt }} - **${{ job.status }}**
    
    | Repo              | Ref                     |
    | ---               | ---                     |
    | **myrepo1:**      | ${{ inputs.REF_REPO1 }} |
    | **myrepo2:**      | ${{ inputs.REF_REPO2 }} |
    | **myrepo3:**      | ${{ inputs.REF_REPO3 }} |
    
    Job was ${{ job.status }}.
    EOF

- name: "Send email"
  uses: dawidd6/action-send-mail@v3
  with:
    connection_url: smtp://mysmtpserver:587
    subject: "${{github.repository}} » ${{github.ref_name}} - Build # ${{github.run_number}} - ${{job.status}}"
    to: ${{ env.BUILD_STATUS_EMAIL }}
    from: '"myuser" <myuser@mycompany.onmicrosoft.com>'
    reply_to: ${{ env.BUILD_STATUS_EMAIL }}
    html_body: file://summary.md
    convert_markdown: true
    secure: true
    priority: normal

Please create a PR.

Added as #220

Nice 🙂. Released in v4.