From 100257de5a366e285a552365357d2222bde4bade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=9C=9C?= <79011008+yunshuangqwq@users.noreply.github.com> Date: Sun, 24 Nov 2024 13:06:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 5bbb19b..f75d2e3 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -14,12 +14,6 @@ jobs: with: fetch-depth: 0 -# 此处没用(只是设置账号信息罢了不设置也行) - - name: Set up Git user - run: | - git config --local user.email "shidang233@outlook.com" - git config --local user.name "yunshuangqwq" - # 添加上游信息 - name: Add upstream repository run: git remote add upstream https://github.com/x-dr/telegraph-Image.git @@ -38,8 +32,16 @@ jobs: run: | git clean -fdx -e .github +# 设置账号信息 + - name: Set up Git user + run: | + git config --local user.email "shidang233@outlook.com" + git config --local user.name "yunshuangqwq" + # 给README.md一个更新让cf自动部署 - name: Commit and push changes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git add README.md README.md git commit -m "Update ck" || echo "No changes to commit"