Skip to content

insgreeb-pro/mail-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mail Action

Sending Email via github action using gmail service.

Usage

- uses: insgreeb-pro/mail-action@v1
  name: Email Notification
  with:
    email: ${{ secrets.EMAIL_USER }}
    password: ${{ secrets.EMAIL_PASSWORD }}
    to: ${{ secrets.TO }}
    subject: Email Notification ${{ github.repository }}
    html: |
      <p>Actor: ${{ github.actor }}</p>
      <p>Message: ${{ github.event.head_commit.message }}</p>

email - (required) gmail email account
password - (required) password to login gmail
to - (required) email destination, using comma separation if multiple destination ex: [email protected] or [email protected], [email protected]
subject (required) email subject
text (optional) email body text
html (optional) email body using html


Note:

Don't forget to activate less secure app on gmail settings.