Skip to content

Update CodeGov

Update CodeGov #16

Workflow file for this run

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