Skip to content

Latest blog post workflow #7829

Latest blog post workflow

Latest blog post workflow #7829

name: Latest blog post workflow
on:
schedule:
# Runs every hour
- cron: '0 * * * *'
workflow_dispatch:
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: jerdog
template-file: 'templates/README.md.template'
out-file: 'README.md'
limit: 10
- name: Commit
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "update articles"
git push origin master