Skip to content

Commit

Permalink
Update use action to v1.7 + prelease job
Browse files Browse the repository at this point in the history
  • Loading branch information
atalargo committed Jul 7, 2022
1 parent da691a6 commit f75962b
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/[email protected]
if: github.event.action == 'released'
uses: daysofwonder/[email protected]
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 }}

0 comments on commit f75962b

Please sign in to comment.