マイワークフロー
私はちょうど複数のユーザー/顧客にメールを送信するために使用できるカスタムgithubアクションを作成しました.プロジェクトリポジトリでリリースが行われるたびにワークフローをトリガーする最良の方法として使用できます.
シンクシュシチ
/
アナウンサー
自動的に発表し、すべての製品のリリースで加入者の一覧にメールを送信する🚀
ギタブアクション
自動的に発表し、すべての製品のリリースで加入者の一覧にメールを送信する🚀
Demo Project
用途
- name: Announcerr
uses: singhkshitij/announcerr@v2
with
server_address: smtp.gmail.com
server_port: 465
username: ${{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.md
to: [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.
Please follow this guide to generate app password which can then be used…
提出カテゴリ
- Maintainer Must-Haves
- Wacky Wildcards
YAMLファイルまたはコードへのリンク
Example repo that has the working workflow file :
シンクシュシチ
/
アナウンサー
アナウンサーgithubアクションのデモ
アナウンサー
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.
Sample YAML to kickstart process:
on:
push:
tags:
- 'v*'
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set env
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
- name: Announce Product release
uses: singhkshitij/[email protected]
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: Launching my awesomeProduct version ${{ env.RELEASE_VERSION }}
body: "file://demo-page.html"
to: ${{secrets.USER_EMAILS}}
from: Kshitij Singh
content_type: text/html
追加情報
PRまたは
feature request hereを上げるために自由に感じてください