Skip to content

Commit 9248921

Browse files
committed
feat: update workflows
1 parent 853be93 commit 9248921

File tree

2 files changed

+6
-30
lines changed

2 files changed

+6
-30
lines changed

.github/workflows/blog-posts.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/get-followers.yml renamed to .github/workflows/update-readme.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Get Followers
1+
name: Update Readme
22

33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: "35 0 * * *" # 6:05 AM IST
6+
- cron: "30 0 * * *"
77

88
jobs:
99
update-followers:
@@ -13,12 +13,15 @@ jobs:
1313
- name: Update followers list
1414
run: |
1515
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
1619
- name: Commit changes
1720
run: |
1821
git config --local user.email "github-actions[bot]@users.noreply.github.com"
1922
git config --local user.name "github-actions[bot]"
2023
git add -A
21-
git diff-index --quiet HEAD || git commit -m "Update followers list"
24+
git diff-index --quiet HEAD || git commit -m "Updated README.md"
2225
- name: Pull changes
2326
run: git pull -r
2427
- name: Push changes

0 commit comments

Comments
 (0)