Skip to content

GitHub Follower Change Notification #735

GitHub Follower Change Notification

GitHub Follower Change Notification #735

name: GitHub Follower Change Notification
on:
# notify me daily
schedule:
- cron: "0 3 * * *" # in UTC time
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: get follower change
id: followerChange
uses: Sorosliu1029/follower-change@v2
with:
myToken: ${{ secrets.READ_REPO_STAR_TOKEN }}
notifyUnFollowEvent: false
- name: email me
uses: dawidd6/action-send-mail@v3
if: steps.followerChange.outputs.shouldNotify == 'true'
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{ secrets.GMAIL_BOT_USERNAME }}
password: ${{ secrets.GMAIL_BOT_PASSWORD }}
subject: GitHub Follower Change
from: Follower Change Notifier
to: ${{ secrets.RECEIVER_EMAIL }}
# use html file from previous step as email body
html_body: file://${{ steps.followerChange.outputs.htmlFilePath }}