forked from DSACMS/ospo-guide
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1.14 KB
/
updateCodeGov.yml
File metadata and controls
46 lines (38 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Update CodeGov
on:
workflow_dispatch:
schedule:
# first day of every month
- cron: '0 0 1 * *'
permissions:
contents: write
jobs:
update-code-gov:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Update CodeGov.json
run: node config/updateCodeGov.js
- name: Update issue-pool.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node config/updateIssuePool.js
- name: Configure Git
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Commit and push changes
run: |
git pull
git add issue-pool.json
git diff --staged --quiet || git commit -m "updated codegov.json and issue-pool.json files with latest additions"
git push