From f75962bda732359659960561205f1944f2034112 Mon Sep 17 00:00:00 2001 From: Florent Ruard-Dumaine Date: Thu, 7 Jul 2022 21:38:25 +0200 Subject: [PATCH] Update use action to v1.7 + prelease job --- .github/workflows/main.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2158d74..946df10 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,15 +1,27 @@ name: E-Mail Release Notification on: release: - types: [released] + types: [prereleased, released] jobs: - notify: + notify-prerelease: + runs-on: ubuntu-latest + steps: + - name: Notify about a new PRE-release + if: github.event.action == 'prereleased' + uses: daysofwonder/sendgrid-notification-action@v1.7 + env: + SENDGRID_API_TOKEN: ${{ secrets.SENDGRID_API_TOKEN }} + SENDER_EMAIL_TEAM: ${{ secrets.SENDER_EMAIL_TEAM }} + SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }} + DISTRIBUTION_LISTS: ${{ secrets.PRERELASE_LIST }} + notify-release: runs-on: ubuntu-latest steps: - name: Notify about a new release - uses: daysofwonder/sendgrid-notification-action@v1.6 + if: github.event.action == 'released' + uses: daysofwonder/sendgrid-notification-action@v1.7 env: SENDGRID_API_TOKEN: ${{ secrets.SENDGRID_API_TOKEN }} - RECIPIENTS_URL: ${{ secrets.RECIPIENTS_URL }} + SENDER_EMAIL_TEAM: ${{ secrets.SENDER_EMAIL_TEAM }} SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }} DISTRIBUTION_LISTS: ${{ secrets.DISTRIBUTION_LISTS }}