Skip to content

Commit

Permalink
fix: gitee action
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyi-Lin committed Sep 11, 2024
1 parent 851b76b commit 0f98018
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/sync-to-gitee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0f98018

Please sign in to comment.