Skip to content

Workflow file for this run

# For this script to run you must set some secrets:
#
# MAIL_CONNECTION
# ex: smtp://user:password@server:port
# TO
# ex: [email protected]
# FROM
# ex: Luke Skywalker <[email protected]>
#
# To set these, you can use gh from the terminal:
# gh secret set MAIL_CONNECTION --body "smtp://foo:[email protected]:465" -R "robertmeta/emacspeak"
# gh secret set TO --body "[email protected]" -R "robertmeta/emacspeak"
# gh secret set FROM --body "Luke Skywalker <[email protected]>" -R "robertmeta/emacspeak"
on:
issues:
types: [opened, edited, closed, reopened]
jobs:
issue-updates:
runs-on: ubuntu-latest
steps:
- name: Send Issue Email
uses: dawidd6/action-send-mail@v3
with:
server_address: ${{secrets.SMTP_HOST}}
server_port: ${{secrets.SMTP_PORT}}
secure: true
username: ${{secrets.SMTP_USERNAME}}
password: ${{secrets.SMTP_PASSWORD}}
convert_markdown: false
nodemailerlog: true
nodemailerdebug: true
to: ${{ secrets.TO }}
from: ${{ secrets.FROM }}
subject: "GitHub Issue: ${{ github.event.issue.title }} - ${{ github.event.action }}"
body: |
${{ github.event.issue.title }} - ${{ github.event.action }}
${{ github.event.issue.body }}
----
Issue Number: #${{ github.event.issue.number }}
Updated By: @${{ github.event.sender.login }}
Issue URL: ${{ github.event.issue.html_url }}
Extra Details:
${{ toJson(github.event) }}