Article Dev #1645
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: "Article Dev" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 */4 * * *" | |
push: | |
branches: | |
- master | |
jobs: | |
update-articles: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Generate README | |
uses: huantt/article-listing@v1.1.0 | |
with: | |
username: victor1890 | |
template-file: "README.md.template" | |
out-file: "README.md" | |
limit: 5 | |
- name: Commit | |
run: | | |
git config user.name victor1890 | |
git config user.email victorrosariodeveloper@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 |