Skip to content

Merge pull request #80 from CoreWorxLab/gtasks-update #73

Merge pull request #80 from CoreWorxLab/gtasks-update

Merge pull request #80 from CoreWorxLab/gtasks-update #73

name: Generate Tool Index
on:
push:
branches: [main]
paths:
- 'tools/**'
- 'scripts/generate-index.js'
workflow_dispatch:
jobs:
generate-index:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Generate index
run: node scripts/generate-index.js
- name: Commit and push if changed
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add docs/
git diff --staged --quiet || git commit -m "chore: regenerate tool index"
git push