Skip to content

Force Generate All Docs #18

Force Generate All Docs

Force Generate All Docs #18

name: Force Generate All Docs
on:
workflow_dispatch:
jobs:
force-generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Force generate all markdown files and README
run: |
node scripts/generate-readme.js
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add README.md contents/
git commit -m 'chore: force-generate all markdown files and README.md' || echo "No changes to commit"
git push