Follower Change
What this action does ?
Get GitHub follower change event, i.e. when a user follows or unfollows you.
It is not realtime, since GitHub does not provide 'follow' events.
So you may run it periodically as a cron job.
Refer to detailed explanation for how it works.
My own working example:
name: follower notifier
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.MY_TOKEN }}
notifyUnFollowEvent: true
- name: email me
uses: dawidd6/action-send-mail@v3
if: steps.followerChange.outputs.shouldNotify == 'true'
with:
server_address: smtp.qq.com
server_port: 465
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: GitHub Follower Change
from: Follower Change
…