Skip to content

Used at MyBuilder to notify the team upon successful deployment of a GitHub release.

Notifications You must be signed in to change notification settings

eddmann/email-release-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Release Notifier

Used at MyBuilder to notify the team upon successful deployment of a GitHub release.

Usage

We use Release Drafter to compile the release notes based on merged pull requests. Once this draft release has been published and a successful deployment has occurred, this GitHub Action is invoked which notifies the team via Email of the changes.

name: Notify Team via Email about Release
on: deployment_status
jobs:
  notify:
    if: ${{ github.event.deployment_status.state == 'success' }}
    runs-on: ubuntu-20.04
    steps:
      - name: Notify Team
        uses: eddmann/email-release-notifier@v1
        with:
          to: to@email.com
          from: from@email.com
          sendGridToken: ${{ secrets.SENDGRID_API_TOKEN }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Alternatively, you can emit the notification upon the release being published.

name: Notify Team via Email about Release
on:
  release:
    types: [published]
jobs:
  notify:
    runs-on: ubuntu-20.04
    steps:
      - name: Notify Team
        uses: eddmann/email-release-notifier@v1
        with:
          to: to@email.com
          from: from@email.com
          sendGridToken: ${{ secrets.SENDGRID_API_TOKEN }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}