From 7c151a4755354aba20fcd1c4684547b2035949a4 Mon Sep 17 00:00:00 2001 From: k2kra Date: Sat, 22 Jul 2023 00:11:18 +0800 Subject: [PATCH] Update sync_mirror.yml --- .github/workflows/sync_mirror.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync_mirror.yml b/.github/workflows/sync_mirror.yml index 3a6792b..2c0039c 100644 --- a/.github/workflows/sync_mirror.yml +++ b/.github/workflows/sync_mirror.yml @@ -26,7 +26,8 @@ jobs: - name: Get commit info run: | MSG=$(git log -1 --pretty=%B) - echo "COMMIT_MSG=SYNC: $MSG (https://github.com/Ark2000/PankuConsole/commit/$GITHUB_SHA)" >> $GITHUB_ENV + LINK=https://github.com/Ark2000/PankuConsole/commit/ + echo "SYNC: $MSG (LINK$GITHUB_SHA)" >> ../COMMIT_MSG - name: Extract archive uses: actions/checkout@v2 @@ -47,7 +48,7 @@ jobs: git config user.name k2kra git config user.email ark2000@foxmail.com git add . - git commit -m "$ENV_COMMIT_MSG" + git commit -m "$(cat ../COMMIT_MSG))" git push echo "git push output: $?"