mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-04-25 11:59:17 +00:00
~增加部分文件内容的同步
This commit is contained in:
10
.github/workflows/bin_update.yml
vendored
10
.github/workflows/bin_update.yml
vendored
@@ -17,6 +17,10 @@ jobs:
|
|||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
persist-credentials: false # 禁用默认凭据(我们用 token push)
|
persist-credentials: false # 禁用默认凭据(我们用 token push)
|
||||||
|
|
||||||
|
- name: Fetch master and dev refs
|
||||||
|
run: |
|
||||||
|
git fetch origin master dev
|
||||||
|
|
||||||
- name: Apt Update & Update CA
|
- name: Apt Update & Update CA
|
||||||
env:
|
env:
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
@@ -136,6 +140,12 @@ jobs:
|
|||||||
sed -i "s/GeoIP_v=.*/GeoIP_v=$(date '+%Y%m%d')/" version
|
sed -i "s/GeoIP_v=.*/GeoIP_v=$(date '+%Y%m%d')/" version
|
||||||
echo 数据库及根证书文件更新完成!
|
echo 数据库及根证书文件更新完成!
|
||||||
|
|
||||||
|
- name: Sync master/dev files into update branch
|
||||||
|
run: |
|
||||||
|
# 只同步文件内容,不带任何 git 状态
|
||||||
|
git archive --format=tar origin/master ShellCrash.tar.gz version | tar -x -C .
|
||||||
|
git archive --format=tar origin/dev install.sh install_en.sh public rules | tar -x -C .
|
||||||
|
|
||||||
- name: Rebuild update branch with no history
|
- name: Rebuild update branch with no history
|
||||||
run: |
|
run: |
|
||||||
# 彻底删除历史记录
|
# 彻底删除历史记录
|
||||||
|
|||||||
Reference in New Issue
Block a user