File tree 6 files changed +31
-22
lines changed
6 files changed +31
-22
lines changed Original file line number Diff line number Diff line change 1
1
name : RSS
2
2
3
- # on: [ push, pull_request ]
4
- on : [ pull_request, workflow_dispatch ]
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ workflow_dispatch :
5
8
6
9
jobs :
7
10
build :
8
11
runs-on : ubuntu-latest
9
12
10
13
steps :
11
- - name : Checkout
12
- uses : actions/checkout@v2
13
- with :
14
- fetch-depth : 0
15
- ref : ${{ github.head_ref }}
14
+ - uses : actions/checkout@v4
16
15
17
16
- name : Install Pandoc
18
17
run :
19
18
sudo apt-get install -y pandoc
20
19
21
20
- name : Build RSS
22
- run : |
23
- git pull --rebase
24
- cd docs/
21
+ run :
25
22
./rss.sh
23
+ working-directory : docs/
26
24
27
25
- name : Commit Updated
28
26
uses : stefanzweifel/git-auto-commit-action@v4
Original file line number Diff line number Diff line change 1
1
name : Sitemap
2
2
3
- # on: [ push, pull_request ]
4
- on : [ pull_request, workflow_dispatch ]
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ workflow_dispatch :
5
8
6
9
jobs :
7
10
build :
8
11
runs-on : ubuntu-latest
9
12
10
13
steps :
11
- - name : Checkout
12
- uses : actions/checkout@v2
13
- with :
14
- fetch-depth : 0
15
- ref : ${{ github.head_ref }}
14
+ - uses : actions/checkout@v4
16
15
17
16
- name : Build Sitemap
18
- run : |
19
- git pull --rebase
20
- cd docs/
17
+ run :
21
18
./sitemap.sh
19
+ working-directory : docs/
22
20
23
21
- name : Commit Updated
24
22
uses : stefanzweifel/git-auto-commit-action@v4
Original file line number Diff line number Diff line change 1
- # 关于我
1
+ # 关于我 : id =about
2
2
3
3
[ ![ 博客] ( https://img.shields.io/badge/Blog-qq52o.me-blue )] ( https://qq52o.me " 沈唁志 ")
4
4
[ ![ 知乎] ( https://cdn.jsdelivr.net/gh/sy-records/staticfile/images/ico/zhihu.svg )] ( https://www.zhihu.com/people/sy-records " 沈唁 ")
Original file line number Diff line number Diff line change 5
5
## 🍃Don't let your past determine the future. : id =cover-page-hitokoto
6
6
7
7
[ GitHub] ( https://github.com/sy-records )
8
- [ Getting Started] ( #main )
8
+ [ Getting Started] ( #about )
9
9
10
10
![ ] ( https://cdn.jsdelivr.net/gh/sy-records/staticfile/images/202109/home-background.jpg )
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ feed="feed.xml"
4
4
website_title=" 沈唁的编程笔记"
5
5
website_link=" https://notes.qq52o.me"
6
6
description=" 沈唁的编程笔记"
7
+ followFeedId=110879509092022272
8
+ followUserId=72226467595413504
7
9
8
10
urlencode () {
9
11
local length=" ${# 1} "
@@ -49,6 +51,10 @@ rss_content="<rss xmlns:atom=\"http://www.w3.org/2005/Atom\" version=\"2.0\">
49
51
<atom:link href=\" $website_link /$feed \" rel=\" self\" type=\" application/rss+xml\" />
50
52
<link>$website_link </link>
51
53
<description>$description </description>
54
+ <follow_challenge>
55
+ <feedId>$followFeedId </feedId>
56
+ <userId>$followUserId </userId>
57
+ </follow_challenge>
52
58
$items
53
59
</channel>
54
60
</rss>"
Original file line number Diff line number Diff line change @@ -283,3 +283,10 @@ git push origin :refs/tags/<tagname>
283
283
``` bash
284
284
git checkout branchName -- filepath
285
285
```
286
+
287
+ ## 生成patch并合并
288
+
289
+ ``` bash
290
+ git format-patch -1 commitId -o ~ /GitHub/sy-records/path
291
+ git apply --reject patchfile
292
+ ```
You can’t perform that action at this time.
0 commit comments