Update README #364
This file contains 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 README | |
on: | |
schedule: | |
- cron: '0 */12 * * *' # Run every hour | |
workflow_dispatch: | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm install | |
- name: Run update script | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: node update-readme.js | |
- name: Commit and push changes | |
run: | | |
git config --global user.name 'jcabak' | |
git config --global user.email '[email protected]' | |
git add README.md package.json | |
git commit -m 'Update README with latest pull requests' | |
git push | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |