đź“Ł Get GitHub follower change notification

My Workflow

As an active user of GitHub, I am always interested in new followers from GitHub, caring a lot about who they are, where are they from, what they do, etc.

So I create a GitHub Action to email me daily, about my follower change …


This content originally appeared on DEV Community and was authored by Soros Liu

My Workflow

As an active user of GitHub, I am always interested in new followers from GitHub, caring a lot about who they are, where are they from, what they do, etc.

So I create a GitHub Action to email me daily, about my follower change events.

Here it is !

GitHub logo Sorosliu1029 / follower-change

đź“Ł Get GitHub follower change event

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
…

Submission Category:

Wacky Wildcards

Yaml File or Link to Code

This workflow composites my follower-change action with Send email action

name: follower notifier
on:
  schedule:
    - cron: '0 3 * * *' # in UTC time
  workflow_dispatch:
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 Notifier
          to: ${{ secrets.TO_EMAIL_ADDRESS }}
          html_body: file://${{ steps.followerChange.outputs.htmlFilePath }}

Additional Resources / Info

Here is how the email looks like, hope you receive it everyday !

Email Screenshot


This content originally appeared on DEV Community and was authored by Soros Liu


Print Share Comment Cite Upload Translate Updates
APA

Soros Liu | Sciencx (2021-12-01T10:02:45+00:00) đź“Ł Get GitHub follower change notification. Retrieved from https://www.scien.cx/2021/12/01/%f0%9f%93%a3-get-github-follower-change-notification/

MLA
" » đź“Ł Get GitHub follower change notification." Soros Liu | Sciencx - Wednesday December 1, 2021, https://www.scien.cx/2021/12/01/%f0%9f%93%a3-get-github-follower-change-notification/
HARVARD
Soros Liu | Sciencx Wednesday December 1, 2021 » đź“Ł Get GitHub follower change notification., viewed ,<https://www.scien.cx/2021/12/01/%f0%9f%93%a3-get-github-follower-change-notification/>
VANCOUVER
Soros Liu | Sciencx - » đź“Ł Get GitHub follower change notification. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/12/01/%f0%9f%93%a3-get-github-follower-change-notification/
CHICAGO
" » đź“Ł Get GitHub follower change notification." Soros Liu | Sciencx - Accessed . https://www.scien.cx/2021/12/01/%f0%9f%93%a3-get-github-follower-change-notification/
IEEE
" » đź“Ł Get GitHub follower change notification." Soros Liu | Sciencx [Online]. Available: https://www.scien.cx/2021/12/01/%f0%9f%93%a3-get-github-follower-change-notification/. [Accessed: ]
rf:citation
» đź“Ł Get GitHub follower change notification | Soros Liu | Sciencx | https://www.scien.cx/2021/12/01/%f0%9f%93%a3-get-github-follower-change-notification/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.