GitHub Action 自动同步博文到 GitHub 主页

引言 自动同步最新博文 到 GitHub 主页,由于是使用 订阅 RSS,因此不限于 Hexo,只要有RSS既可。 .github/workflows/main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
name: Latest blog post workflow
on:
schedule: # Run workflow automatically
- cron: '0 * * * *' # Runs every hour, on the hour
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the Github Actions Workflow page directly

jobs:
update-readme-with-blog:
name: Update this repo's README with latest blog posts
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Pull in dev.to posts
uses: gautamkrishnar/blog-post-workflow@master
with:
feed_list: "https://moeci.com/atom.xml"
max_post_count: "5"

github.com/yiyungent/yiyungent/README.md
1
2
3
4
### Latest Blog Posts

<!-- BLOG-POST-LIST:START -->
<!-- BLOG-POST-LIST:END -->
Q&A 补充 参考 感谢帮助! 如何自动同步博客到 Github 主页?_azl397985856的专栏-CSDN博客 Github 个人Profile 自动实时获取最新博客博文日志并生成链接_wujiuqier的博客-CSDN博客 gautamkrishnar/blog-post-workflow: Show your latest blog posts from any sources or StackOverflow activity or Youtube Videos on your GitHub profile/project readme automatically using the RSS feed