- name: Announcerruses: singhkshitij/announcerr@v2withserver_address: smtp.gmail.comserver_port: 465username: ${{secrets.MAIL_USERNAME}}password: ${{secrets.MAIL_PASSWORD}}subject: Launching my awesomeProduct version ${{ github.event.release.tag_name }}# Literal body:body: Just launched new version of my ${{github.repository}} ! It is fully packed with awesome features.# Read file contents as body:body: file://README.mdto: [email protected],[email protected]from: Kshitij Singh ## Optional content type (defaults to text/plain):content_type: text/html# Optional attachments:attachments: attachments.zip,git.diff,./dist/static/main.js
Caution: Some email server provider such as Gmail do not allow password directly to be used in such apps and might block send message operation, if we try to give plain password directly.
A demo repo which sends out the changelog email to all the users with the help of Announcer github action whenever a new app version is released ! ๐งโ๐
์ด๋ป๊ฒ ์๋ํฉ๋๊น?
Repo contains a workflow file that gets triggered whenever a release is made.
This workflow files uses Announcer github action and provides some input to the announcer such as , email username, password and list of users whom to send changelog email.
Important step is passing the changelog file to the announcer action, which in this case is Demo-page.html๐ง.
Whenever a release is made on repo , announcer gh-action gets tiggered ๐, reads the changelog file content and sends it to all the users.
PS : To maintain privacy ๐ Gh-action is reading all the creds and emails from github secrets.