File tree Expand file tree Collapse file tree 5 files changed +1316
-0
lines changed
Expand file tree Collapse file tree 5 files changed +1316
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments