Skip to content

fix: gitee action vars #4

fix: gitee action vars

fix: gitee action vars #4

Workflow file for this run

name: Sync to Gitee
on:
push:
branches:
- master # 或者你想要同步的其他分支
jobs:
sync:
runs-on: ubuntu-latest
environment: gitee
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Push to Gitee
run: |
git config --global user.name ${{ vars.GITEE_USERNAME }}
git config --global user.email ${{ vars.GITEE_EMAIL }}
git remote add gitee https://${{ vars.GITEE_USERNAME }}:${{ secrets.GITEE_TOKEN }}@gitee.com/${{ vars.GITEE_USERNAME }}/HivisionIDPhotos.git
git push -f gitee master:master