From 8e5ac1dce591e987ddd93a21ba0ed5b12d82f287 Mon Sep 17 00:00:00 2001 From: juewuy Date: Sun, 19 Apr 2026 12:24:42 +0800 Subject: [PATCH] =?UTF-8?q?~=E5=A2=9E=E5=8A=A0=E9=83=A8=E5=88=86=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=86=85=E5=AE=B9=E7=9A=84=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bin_update.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/bin_update.yml b/.github/workflows/bin_update.yml index 835fcc2a..a833361c 100644 --- a/.github/workflows/bin_update.yml +++ b/.github/workflows/bin_update.yml @@ -17,6 +17,10 @@ jobs: fetch-depth: 1 persist-credentials: false # 禁用默认凭据(我们用 token push) + - name: Fetch master and dev refs + run: | + git fetch origin master dev + - name: Apt Update & Update CA env: DEBIAN_FRONTEND: noninteractive @@ -136,6 +140,12 @@ jobs: sed -i "s/GeoIP_v=.*/GeoIP_v=$(date '+%Y%m%d')/" version 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 run: | # 彻底删除历史记录