From 5e3e02e41d21fa041ad5aa7b2b0a2d2a058a13ee Mon Sep 17 00:00:00 2001 From: Owefsad <16431735+exexute@users.noreply.github.com> Date: Mon, 20 Dec 2021 16:29:13 +0800 Subject: [PATCH] Fix: add version update shell --- .github/workflows/release_engine.yml | 1 + .github/workflows/version_update.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_engine.yml b/.github/workflows/release_engine.yml index 637a8dc..95406d1 100644 --- a/.github/workflows/release_engine.yml +++ b/.github/workflows/release_engine.yml @@ -44,6 +44,7 @@ jobs: - name: Generate version file run: | + bash .github/workflows/version_update.sh "${{ steps.release.outputs.VERSION }}" cd ${{ github.workspace }} && \ echo "${{ github.event.repository.name }},version,${{ steps.release.outputs.VERSION }}" >> version.txt && \ echo "${{ github.event.repository.name }},commit_hash,${GITHUB_SHA}" >> version.txt \ diff --git a/.github/workflows/version_update.sh b/.github/workflows/version_update.sh index 9e3a086..38c2ed1 100644 --- a/.github/workflows/version_update.sh +++ b/.github/workflows/version_update.sh @@ -2,8 +2,8 @@ NEW_VERSION=$1 echo "curent path: $(pwd), change version to $NEW_VERSION" -git config --global user.name 'exexute' -git config --global user.email '1528360120@qq.com' +git config --global user.name "$GITHUB_ACTOR" +git config --global user.email "$GITHUB_ACTOR@bot.noreplay.dongtai.io" git checkout -b "release-$NEW_VERSION" sed -i "" "s/:latest/:$NEW_VERSION/g" README.MD