This commit is contained in:
auh 2023-03-23 05:02:33 +08:00
parent b4c9f02ac9
commit 2208819d22
6 changed files with 39985 additions and 7 deletions

View File

@ -19,7 +19,7 @@ jobs:
- run: | - run: |
sed -i '1,10 s/__PROXY__/${{ vars.PAC_PROXY }}/g' code.js # 使用action 仓库变量,配置常变参数 sed -i '1,10 s/__PROXY__/${{ vars.PAC_PROXY }}/g' code.js # 使用action 仓库变量,配置常变参数
python3 build.py python3 build.py
gzip -9 dist/*.txt gzip -9 -k dist/*.txt
- name: Generate release info - name: Generate release info
id: release-info id: release-info
run: python3 release-info.py run: python3 release-info.py
@ -35,9 +35,9 @@ jobs:
- name: Push dist files - name: Push dist files
run: | run: |
set -x set -x
sed -i 's/{REPO}/${{ github.repository }}/' README.md # 当别人fork后README 信息自动变更到他自己的仓库 sed -i 's#__REPO__#${{ github.repository }}#g' README.md # 当别人fork后README 信息自动变更到他自己的仓库
sed -i '/TIME/d' dist/*.txt # 剔除日期变更,忽略仅仅因为日期变更而出现的提交 sed -i '/Time:/d' dist/*.txt # 剔除日期变更,忽略仅仅因为日期变更而出现的提交
git add -f -A dist/*.txt git add -f -A dist/*.txt README.md
git commit -m "[$(LANG=C date)] auto update" || exit 0 git commit -m "[$(LANG=C date)] auto update" || exit 0
[ -n "${{ secrets.READ_ONLY }}" ] && git show && exit 0 [ -n "${{ secrets.READ_ONLY }}" ] && git show && exit 0
git push origin master git push origin master

View File

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

6403
dist/pac-17mon.txt vendored Normal file

File diff suppressed because it is too large Load Diff

14418
dist/pac-gfwlist-17mon.txt vendored Normal file

File diff suppressed because it is too large Load Diff

13586
dist/pac-gfwlist-ipdeny.com.txt vendored Normal file

File diff suppressed because it is too large Load Diff

5571
dist/pac-ipdeny.com.txt vendored Normal file

File diff suppressed because it is too large Load Diff