mail-on-star/.github/workflows/mail-on-star.yml
2020-03-22 10:02:39 -05:00

27 lines
896 B
YAML

name: Mail on Star
on:
watch:
types: [ started ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "email"
email:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: ✨ Send email, you star
if: github.actor == 'WaylonWalker'
uses: dawidd6/action-send-mail@v1.3.0
with:
server_address: smtp.gmail.com
server_port: 465
username: quadmx08
password: ${{ secrets.GMAIL_PASS }}
subject: Your a star ✨
body: ${{ github.actor }} just starred your mail-on-star repo!!! ${{ github.repository }}
to: ${{ secrets.GMAIL_ADDRESS }}
from: ${{ secrets.GMAIL_ADDRESS }}