File tree Expand file tree Collapse file tree 3 files changed +68
-50
lines changed Expand file tree Collapse file tree 3 files changed +68
-50
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-
8- jobs :
9- update-posts :
10- runs-on : ubuntu-latest
11- steps :
12- - uses : actions/checkout@v4
13- - name : Update post list
14- run : |
15- cd scripts && npm install && ACCESS_TOKEN=${{ secrets.ACCESS_TOKEN }} npm run get:posts
16- - name : Commit changes
17- run : |
18- git config --local user.email "github-actions[bot]@users.noreply.github.com"
19- git config --local user.name "github-actions[bot]"
20- git add -A
21- git diff-index --quiet HEAD || git commit -m "Update blog posts"
22- - name : Pull changes
23- run : git pull -r
24- - name : Push changes
25- uses : ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df
26- with :
27- github_token : ${{ secrets.ACCESS_TOKEN }}
3+ update-posts :
4+ runs-on : ubuntu-latest
5+ steps :
6+ - uses : actions/checkout@v4
7+ - name : Update post list
8+ run : |
9+ cd scripts && npm install && ACCESS_TOKEN=${{ secrets.ACCESS_TOKEN }} npm run get:posts
10+ - name : Commit changes
11+ run : |
12+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
13+ git config --local user.name "github-actions[bot]"
14+ git add -A
15+ git diff-index --quiet HEAD || git commit -m "Update blog posts"
16+ - name : Pull changes
17+ run : git pull -r
18+ - name : Push changes
19+ uses : ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df
20+ with :
21+ github_token : ${{ secrets.ACCESS_TOKEN }}
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-
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 : Commit changes
17- run : |
18- git config --local user.email "github-actions[bot]@users.noreply.github.com"
19- git config --local user.name "github-actions[bot]"
20- git add -A
21- git diff-index --quiet HEAD || git commit -m "Update followers list"
22- - name : Pull changes
23- run : git pull -r
24- - name : Push changes
25- uses : ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df
26- with :
27- ACCESS_TOKEN : ${{ secrets.ACCESS_TOKEN }}
3+ update-followers :
4+ runs-on : ubuntu-latest
5+ steps :
6+ - uses : actions/checkout@v4
7+ - name : Update followers list
8+ run : |
9+ cd scripts && npm install && ACCESS_TOKEN=${{ secrets.ACCESS_TOKEN }} npm run get:followers
10+ - name : Commit changes
11+ run : |
12+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
13+ git config --local user.name "github-actions[bot]"
14+ git add -A
15+ git diff-index --quiet HEAD || git commit -m "Update followers list"
16+ - name : Pull changes
17+ run : git pull -r
18+ - name : Push changes
19+ uses : ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df
20+ with :
21+ ACCESS_TOKEN : ${{ secrets.ACCESS_TOKEN }}
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