Skip to content

Update README.md

Update README.md #7

name: Update this repo's README
on:
push:
# Run on main branch pushes
branches: [main]
# Allow to manually trigger the workflow
workflow_dispatch:
schedule:
# Rebuild every day at 9:06 PM UTC
- cron: "6 21 * * *"
jobs:
pull_blog_rss:
name: Update with latest blog posts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get RSS Feed
uses: kohrongying/readme-the-rss@master
with:
feed_url: https://cogley.jp/feed.xml
count: 6 # default 5
- name: Commit file changes
run: |
git config --global user.name 'James R. Cogley'
git config --global user.email '[email protected]'
git add .
git diff --quiet --cached || git commit -m "Update README"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GHTOKEN }}