Skip to content

eliasmelgaco/release-notify-git-actions

Repository files navigation

Release Notify Git Actions

A node.js project using Github Actions to send email and slack message (optional) when a new release is created.

Libraries:

requirements:

The repository should use Github Release feature

Installation

name: Release
on:
  release:
    types: [published]

jobs:
  build:
    name: Release Notifier
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Release Notify Git Actions GH Action
        uses: actions/checkout@v2
        with:
          repository: eliasmelgaco/release-notify-git-actions
          token: ${{ secrets.ACTIONS_TOKEN }}
          path: ./.github/actions/release-notify

      - name: Install dependencies
        run: cd ./.github/actions/release-notify && npm i

      - name: Release Notify Git Actions
        uses: ./.github/actions/release-notify
        id: releaseStep
        with:
          github-token: ${{ secrets.ACTIONS_TOKEN }}
          slackbot-token: ${{ secrets.SLACK_TOKEN }}
          slack-conversation-id: ${{ secrets.SLACK_CONVERSATION_ID }}
          sendgrid-token: ${{ secrets.SENDGRID_RELEASE_NOTIFY_TOKEN }}
          email-recipients: ${{ secrets.EMAIL_RECIPIENTS }}

Note: email-recipients should be split by ,

Note: You must ask the DevOps team for the secret keys to the project you are implementing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published