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

推荐订阅源

量子位
D
Docker
月光博客
月光博客
MongoDB | Blog
MongoDB | Blog
Vercel News
Vercel News
美团技术团队
博客园 - 叶小钗
I
InfoQ
Jina AI
Jina AI
博客园 - 司徒正美
雷峰网
雷峰网
B
Blog
Y
Y Combinator Blog
A
About on SuperTechFans
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recent Announcements
Recent Announcements
V
V2EX
N
Netflix TechBlog - Medium

姓王者的博客

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