File tree Expand file tree Collapse file tree 3 files changed +30
-10
lines changed Expand file tree Collapse file tree 3 files changed +30
-10
lines changed Original file line number Diff line number Diff line change 11name : Blog Posts
22
3- on :
4- workflow_dispatch :
5- schedule :
6- - cron : " 35 0 * * *" # 6:05 AM IST
7-
83jobs :
94 update-posts :
105 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 11name : Get Followers
22
3- on :
4- workflow_dispatch :
5- schedule :
6- - cron : " 35 0 * * *" # 6:05 AM IST
7-
83jobs :
94 update-followers :
105 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ name : Update Readme
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ - cron : " 30 0 * * *"
7+
8+ jobs :
9+ update-followers :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - name : Update followers list
14+ run : |
15+ cd scripts && npm install && ACCESS_TOKEN=${{ secrets.ACCESS_TOKEN }} npm run get:followers
16+ - name : Update Blog Posts
17+ run : |
18+ cd scripts && npm install && ACCESS_TOKEN=${{ secrets.ACCESS_TOKEN }} npm run get:posts
19+ - name : Commit changes
20+ run : |
21+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
22+ git config --local user.name "github-actions[bot]"
23+ git add -A
24+ git diff-index --quiet HEAD || git commit -m "Updated README.md"
25+ - name : Pull changes
26+ run : git pull -r
27+ - name : Push changes
28+ uses : ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df
29+ with :
30+ ACCESS_TOKEN : ${{ secrets.ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments