Skip to content

Commit

Permalink
Create GitHub Action: push-to-release-email (#56)
Browse files Browse the repository at this point in the history
* Create GitHub-actions-push-demo.yml

* Changes the  demo script

* Added more data to script

* Added Gmail agent

* fixed formatting issues

* Change the agent email

* Changes the filter

* Fixed formatting errors
  • Loading branch information
kcw-grunt authored Jun 6, 2021
1 parent 0db91de commit 43f30a8
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/push-to-release-email.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Email notfication for upcoming release
on:
push:
branches:
- release
jobs:
send_email:
runs-on: ubuntu-latest
name: send_email
steps:
- name: Send email
# You may pin to the exact commit or the version.
# uses: dawidd6/action-send-mail@98b61f505d216dafd844f3bfca5b2972df822dab
uses: dawidd6/[email protected]
with:
# Required mail server address:
server_address: smtp.gmail.com
# Required mail server port:
server_port: 465
# Required mail server username:
username: ${{secrets.MAIL_AGENT_USERNAME}}
# Required mail server password:
password: ${{secrets.MAIL_AGENT_PASSWORD}}
# Required mail subject:
subject: Litewallet iOS Release almost ready
# Required recipients' addresses:
to: [email protected] # [email protected],
# Required sender full name (address can be skipped):
from: <[email protected]> # <[email protected]> Litewallet iOS Github Repo
# Optional whether this connection use TLS (default is true if server_port is 465)
secure: true
# Optional plain body:
body: Build job of ${{github.repository}} completed successfully!
# Optional HTML body read from file:
html_body: file://README.html
# Optional carbon copy recipients:
cc: [email protected]
# Optional recipient of the email response:
reply_to: [email protected]
# Optional unsigned/invalid certificates allowance:
ignore_cert: true
# Optional converting Markdown to HTML (set content_type to text/html too):
convert_markdown: true

0 comments on commit 43f30a8

Please sign in to comment.