From 0f980182ae5a8487be5b5bab8f5fd894fab7506c Mon Sep 17 00:00:00 2001 From: ZeYi Lin <944270057@qq.com> Date: Thu, 12 Sep 2024 01:14:06 +0800 Subject: [PATCH] fix: gitee action --- .github/workflows/sync-to-gitee.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/sync-to-gitee.yml b/.github/workflows/sync-to-gitee.yml index a9350fe8..4c65d689 100644 --- a/.github/workflows/sync-to-gitee.yml +++ b/.github/workflows/sync-to-gitee.yml @@ -14,12 +14,8 @@ jobs: uses: actions/checkout@v2 - name: Push to Gitee - env: - GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }} - GITEE_USERNAME: ${{ secrets.GITEE_USERNAME }} - GITEE_EMAIL: ${{ secrets.GITEE_EMAIL }} run: | - git config --global user.name ${GITEE_USERNAME} - git config --global user.email ${GITEE_EMAIL} - git remote add gitee https://${GITEE_USERNAME}:${GITEE_TOKEN}@gitee.com/${GITEE_USERNAME}/HivisionIDPhotos.git + git config --global user.name ${{ secrets.GITEE_USERNAME }} + git config --global user.email ${{ secrets.GITEE_EMAIL }} + git remote add gitee https://${{ secrets.GITEE_USERNAME }}:${{ secrets.GITEE_TOKEN }}@gitee.com/${{ secrets.GITEE_USERNAME }}/HivisionIDPhotos.git git push -f gitee master:master