Skip to content

Commit d5b009c

Browse files
finished aggregation feature
Signed-off-by: Sachin Panayil <[email protected]>
1 parent 24748ea commit d5b009c

File tree

5 files changed

+1316
-0
lines changed

5 files changed

+1316
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Update CodeGov
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
# first day of every month
6+
- cron: '0 0 1 * *'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
update-code-gov:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Update CodeGov.json
29+
uses: node config/updateCodeGov.js
30+
31+
- name: Configure Git
32+
run: |
33+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
34+
git config --local user.name "github-actions[bot]"
35+
36+
- name: Commit and push changes
37+
run: |
38+
git add ../codegov.json
39+
git diff --staged --quiet || git commit -m "Auto-update JSON file"
40+
git push

0 commit comments

Comments
 (0)