-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Send test email via AWS SES to developers on action update | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/on_action_update_send_test_email.yml' | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: 'eu-west-1' | ||
|
||
jobs: | ||
send_email: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send email using AWS SES | ||
uses: dsfx3d/action-aws-ses@v1 | ||
with: | ||
to: ${{ vars.TEST_EMAIL_RECIPIENTS }} | ||
from: ${{ vars.NEW_ANDROID_RELEASE_EMAIL_TO }} | ||
reply_to: ${{ vars.NEW_ANDROID_RELEASE_EMAIL_REPLY_TO }} | ||
subject: ${{ vars.NEW_ANDROID_RELEASE_EMAIL_SUBJECT }} | ||
body_html: ${{ vars.NEW_ANDROID_RELEASE_EMAIL_BODY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
name: Send email to customers on Android changelog update | ||
name: Send email via AWS SES to customers on Android changelog update | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'AndroidSDK/CHANGELOG_ANDROID_SDK.md' | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: 'eu-west-1' | ||
|
||
jobs: | ||
send_email: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dawidd6/action-send-mail@v3 | ||
- name: Send email using AWS SES | ||
uses: dsfx3d/action-aws-ses@v1 | ||
with: | ||
server_address: dev.catapush.rocks | ||
server_port: 587 | ||
secure: false | ||
ignore_cert: true | ||
username: ${{secrets.SMTP_USER}} | ||
password: ${{secrets.SMTP_PASSWORD}} | ||
subject: A new release of the Catapush Android SDK is available | ||
to: ${{secrets.EMAIL_RECIPIENTS}} | ||
from: Catapush Updates <[email protected]> | ||
reply_to: No-Reply <[email protected]> | ||
html_body: > | ||
<html><body style="font-family: sans-serif;"><p>A new release of the Catapush Android SDK is available.</p><p>Please check the <a href="https://github.com/Catapush/catapush-docs/blob/master/AndroidSDK/CHANGELOG_ANDROID_SDK.md">official changelog</a> for further details.</p><p><br/>--<br/>Catapush Team<br/><a href="mailto:[email protected]">[email protected]</a> | <a href="https://www.catapush.com/">www.catapush.com</a><br/>Catapush S.r.l.<br/>Via Copernico 38 - 20125 Milano<br/>Tel <a href="tel:+390221118062">+39.02.21118062</a></p></body></html> | ||
priority: low | ||
to: ${{ vars.NEW_ANDROID_RELEASE_EMAIL_TO }} | ||
from: ${{ vars.NEW_ANDROID_RELEASE_EMAIL_TO }} | ||
reply_to: ${{ vars.NEW_ANDROID_RELEASE_EMAIL_REPLY_TO }} | ||
subject: ${{ vars.NEW_ANDROID_RELEASE_EMAIL_SUBJECT }} | ||
body_html: ${{ vars.NEW_ANDROID_RELEASE_EMAIL_BODY }} |