惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
云风的 BLOG
云风的 BLOG
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Recent Announcements
Recent Announcements
IT之家
IT之家
Google DeepMind News
Google DeepMind News
罗磊的独立博客
爱范儿
爱范儿
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
U
Unit 42
MongoDB | Blog
MongoDB | Blog
S
SegmentFault 最新的问题
B
Blog
博客园 - 叶小钗
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
C
Check Point Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

姓王者的博客

Linux用户Secure Boot自主维护指南 | 姓王者的博客 MAD Bugs 已经开始——关于信息安全的军备竞赛 | 姓王者的博客 解决钉钉Dingtalk无法在Linux新版内核上启动问题-修复可执行栈错误 | 姓王者的博客 突发:GitHub 正遭受大规模 Issue 赌博广告轰炸 | 姓王者的博客 Ubuntu26.04-beta体验:坚毅浣熊! | 姓王者的博客 fakeclaw装作龙虾发贴吧 | 姓王者的博客 找回12年前的QQ记忆 | 姓王者的博客 在Linux上玩Flash网页游戏-洛克王国 | 姓王者的博客 Copilot将使用交互数据来训练 | 姓王者的博客 重要通知-请更新我的GPG公钥 | 姓王者的博客 为了自由Android | 姓王者的博客 GPL"2,3"事 | 姓王者的博客 短文-对VitePlus的一点🤏小贡献 | 姓王者的博客 Bing收录没了?亲测有效的快速恢复指南 | 姓王者的博客 解决桌面设备二维码快速识别的工具-ClipQR | 姓王者的博客 解决 Nautilus 自定义终端插件安装依赖问题 | 姓王者的博客 OpenClaw 该熄火了 | 姓王者的博客 Vite8 - 统一的基建开始 | 姓王者的博客 Astro 6 推出啦 | 姓王者的博客 ubuntu的openvpn异常暂停推送更新 | 姓王者的博客 Ubuntu 24.04 安装 Win10 虚拟机 | 姓王者的博客 ESA-后记:热爱阿里云 | 姓王者的博客 Moonbit 0.8.0 重大发布,我也要改一下我的包 | 姓王者的博客 ESA Pages 边缘开发大赛获奖 | 姓王者的博客 Astro: 优化katex,mermaid和灯箱使用 | 姓王者的博客 从edgeone迁移到esa | 姓王者的博客 出租人类:AI时代的荒诞与真实 | 姓王者的博客 Astro 5.17构建性能优化实践:从18s到13s | 姓王者的博客 Moonbit License Checker 开发使用 | 姓王者的博客 Stalux Astro博客主题自荐 | 姓王者的博客
抓取个人博客文章目录到github主页 | 姓王者的博客
作者:xingwangzhe · 2024-11-11 · via 姓王者的博客

🕒 阅读时间:1 分钟 📝 字数:394 👀 阅读量: Loading...

2024-11-11-194849

如图所见,我在我的github主页上加了我的最近的个人博客的文章

所用项目

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

创建blog-post-workflow.yml

具体的路径应该是.github/workflows/blog-post-workfliw.yml

复制粘贴

## This is a basic workflow to help you get started with Actions

name: Latest blog post workflow

## Controls when the workflow will run

on:

# Triggers the workflow on push or pull request events but only for the main branch

# push:

# branches: [ main ]

# pull_request:

# branches: [ main ]

schedule: # Run workflow automatically

- cron: "0 3 * * *" # Runs at 3:00 # 定时任务,每天3:00触发

# Allows you to run this workflow manually from the Actions tab

workflow_dispatch:

## A workflow run is made up of one or more jobs that can run sequentially or in parallel

jobs:

# This workflow contains a single job called "build"

update-readme-with-blog:

name: Update README with latest blog posts

# The type of runner that the job will run on

runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job

steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it

- name: Checkout

uses: actions/checkout@v2

# Runs a single command using the runners shell

- name: Update posts

uses: gautamkrishnar/blog-post-workflow@master

with:

feed_list: "https://xingwangzhe.fun/atom.xml" #这里应该替换成自己的rss地址

max_post_count: 7 # 顾名思义,最大文章数。

添加关键词

在你的主页的readme里面添加

<!-- BLOG-POST-LIST:START -->

<!-- BLOG-POST-LIST:END -->

给予编辑权限

在你主页仓库的settings里,打开Actions设置,选择general,然后选中第一个。并点击save保存设置。

2024-11-11-200456

触发流程

然后在Actions选择触发Run workflow

2024-11-11-200147

然后静待结束,就大功告成了!

当然这个还有更多的参数使用,不过我懒得弄:),怎么方便怎么来吧:)

参考

利用GitHub Actions自动获取博客rss文章 | 二丫讲梵 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