Rebuild README #1008
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: Rebuild README | |
| on: | |
| push: | |
| branches: | |
| - master | |
| schedule: | |
| - cron: '30 4 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| rebuildReadme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v6 | |
| - name: setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '20.x' | |
| - name: cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-js-${{ hashFiles('package-lock.json') }} | |
| - name: Install dependencies | |
| run: npm install --omit=dev | |
| - name: Generate README file | |
| run: node index.js --update-readme | |
| - name: Push new README.md | |
| uses: mikeal/publish-to-github-action@master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BRANCH_NAME: 'master' |