Skip to content

Commit 10c8fc3

Browse files
authored
Merge branch 'main' into feature-author-profile-v2
2 parents 888ec3c + 4f01813 commit 10c8fc3

65 files changed

Lines changed: 13183 additions & 3817 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Generate Contributors
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
schedule:
7+
- cron: '0 0,8,16 * * *' # three times a day at 00:00, 08:00, and 16:00 UTC
8+
workflow_dispatch: {}
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
generate:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: true
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '18'
26+
27+
- name: Install (none required)
28+
run: node -v
29+
30+
- name: Run generator
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
OWNER: devanshi14malhotra
34+
REPO: BiblioDrift
35+
PER_PAGE: '100'
36+
run: |
37+
node scripts/generate_contributors.js
38+
39+
- name: Commit and push if changed
40+
run: |
41+
git config user.name "github-actions[bot]"
42+
git config user.email "github-actions[bot]@users.noreply.github.com"
43+
git add frontend/data/contributors.json
44+
if ! git diff --cached --quiet; then
45+
git commit -m "chore: update contributors.json"
46+
git push
47+
else
48+
echo "No changes to commit"
49+
fi

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ instance/
3333
# Virtual Environment
3434
venv/
3535
.venv/
36+
37+
# Local untracked scripts folder
38+
untracked/

0 commit comments

Comments
 (0)