feat: auto README content when fork it

This commit is contained in:
auh 2023-03-23 04:35:57 +08:00
parent 2542408430
commit 9b08216c1c
2 changed files with 5 additions and 2 deletions

View File

@ -34,6 +34,7 @@ jobs:
- name: Push dist files
run: |
set -x
sed -i 's/{REPO}/${{ github.repository }}/' README.md # 当别人fork后README 信息自动变更到他自己的仓库
sed -i '/TIME/d' dist/*.txt # 剔除日期变更,忽略仅仅因为日期变更而出现的提交
git add -f -A dist/*.txt
git commit -m "[$(LANG=C date)] auto update" || exit 0

View File

@ -1,5 +1,7 @@
# pac
![](https://github.com/{REPO}/actions/workflows/build.yml/badge.svg)
PAC scripts for proxies
## 特点
@ -25,9 +27,9 @@ PAC scripts for proxies
在线使用。引用dist目录中的文件的raw链接。或者使用其镜像加速链接推荐。如
Github Raw: https://raw.githubusercontent.com/{GITHUB_USERNAME}/pac/master/dist/pac-gfwlist-17mon.txt
Github Raw: https://raw.githubusercontent.com/{REPO}/master/dist/pac-gfwlist-17mon.txt
FastGit: https://raw.fastgit.org/{GITHUB_USERNAME}/pac/master/dist/pac-gfwlist-17mon.txt
FastGit: https://raw.fastgit.org/{REPO}/master/dist/pac-gfwlist-17mon.txt
### 方式三: