Update CodeGov #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |