Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
thearaks committed Mar 27, 2024
1 parent f1f05ff commit d1d2768
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 15 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/on_action_update_send_test_email.yml
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 }}
29 changes: 14 additions & 15 deletions .github/workflows/on_release_send_email.yml
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 }}

0 comments on commit d1d2768

Please sign in to comment.