From 9b50b719d9687f5d8ecf52818009976748425ee5 Mon Sep 17 00:00:00 2001 From: snowy Date: Sat, 1 Jun 2024 15:05:45 +0800 Subject: [PATCH] =?UTF-8?q?:rocket:=20=E5=AF=B9lyfunction=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E6=B7=BB=E5=8A=A0=E9=89=B4=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/add_commit_info.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/add_commit_info.yml b/.github/workflows/add_commit_info.yml index 4d96cd61..f643777a 100644 --- a/.github/workflows/add_commit_info.yml +++ b/.github/workflows/add_commit_info.yml @@ -14,8 +14,10 @@ jobs: run: | echo $(git rev-parse HEAD) > liteyuki/resources/vanilla_resource/commit.txt - - name: Upload commit hash - uses: actions/upload-artifact@v2 - with: - name: commit-hash - path: liteyuki/resources/vanilla_resource/commit.txt \ No newline at end of file + - name: Commit and push + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add liteyuki/resources/vanilla_resource/commit.txt + git commit -m ":rocket: Record commit hash" + git push \ No newline at end of file