From 392a81d25b3821bbf66cfef20b24022b38803225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89=E9=B8=AD=E8=9B=8B?= Date: Fri, 5 Sep 2025 00:59:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D=E6=97=A0?= =?UTF-8?q?=E6=B3=95commit=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_release_branch.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_release_branch.yml b/.github/workflows/build_release_branch.yml index 96f759afb..fe49f46c9 100644 --- a/.github/workflows/build_release_branch.yml +++ b/.github/workflows/build_release_branch.yml @@ -20,7 +20,6 @@ jobs: uses: actions/checkout@v4 with: path: bettergi-scripts-list - fetch-depth: 0 - name: Setup Node.js uses: actions/setup-node@v4 @@ -59,14 +58,11 @@ jobs: # 复制生成好的repo.json文件 cp ../repo.json . cp ../repo.json.gz . - - # 添加所有文件 - git add . - - # 提交 - git commit -m "reset the release branch" - - # 强制推送到远程release分支 - git push -f origin release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + + - name: Commit and push to release branch + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "reset the release branch" + branch: release + push_options: '--force' + repository: bettergi-scripts-list \ No newline at end of file