Force Generate All Docs #18
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: 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 |