From 7b790582c6c387058b709a362a0ca2aa241399c2 Mon Sep 17 00:00:00 2001 From: celetor Date: Fri, 7 Jan 2022 11:54:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 5 ++--- .github/workflows/test.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b4a27d9ed..588a84a8e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,9 +82,8 @@ jobs: - name: Push Assets To "release" Branch if: ${{ github.actor == 'gedoor' }} run: | - git init - git config --local user.name "github-actions[bot]" - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git clone "https://${{ github.actor }}:${{ secrets.ACTIONS_TOKEN }}@github.com/${{ github.actor }}/release" -b release release-branch mv -f $GITHUB_WORKSPACE/apk/*.apk release-branch cd release-branch diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51631e482..1b4d1cf60 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -127,9 +127,8 @@ jobs: run: mv */*.apk . ;rm -rf */ - name: Push To "test" Branch run: | - git init - git config --local user.name "github-actions[bot]" - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git clone "https://${{ github.actor }}:${{ secrets.ACTIONS_TOKEN }}@github.com/${{ github.actor }}/release" -b test test-branch mv -f $GITHUB_WORKSPACE/apk/*.apk test-branch cd test-branch