PostReadme #632
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: PostReadme | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- run: npm install -g yarn | |
- run: yarn install | |
- run: yarn run generate | |
- run: | | |
git config user.name DannielNavas | |
git config user.email dannielnavas@gmail.com | |
git add README.md | |
git diff --quiet && git diff --staged --quiet || git commit -m "[bot] Update README with latest info" | |
git push origin master |