Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emailer not rendering markdown table. #219

Closed
phoeniixhawk opened this issue Nov 19, 2024 · 3 comments
Closed

Emailer not rendering markdown table. #219

phoeniixhawk opened this issue Nov 19, 2024 · 3 comments

Comments

@phoeniixhawk
Copy link
Contributor

phoeniixhawk commented Nov 19, 2024

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" <[email protected]>'
    reply_to: ${{ env.BUILD_STATUS_EMAIL }}
    html_body: file://summary.md
    convert_markdown: true
    secure: true
    priority: normal
@dawidd6
Copy link
Owner

dawidd6 commented Nov 19, 2024

Please create a PR.

@phoeniixhawk
Copy link
Contributor Author

Added as #220

@dawidd6
Copy link
Owner

dawidd6 commented Nov 20, 2024

Nice 🙂. Released in v4.

@dawidd6 dawidd6 closed this as completed Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants