Update veye_mipi_i2c.sh #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync to Gitee (Organization) | |
| on: | |
| push: | |
| branches: | |
| - master # 或 master,取决于你主分支的名字 | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Mirror push to Gitee (org repo) | |
| run: | | |
| git config --global user.name "mmxuxp" | |
| git config --global user.email "[email protected]" | |
| # 添加 Gitee 的组织仓库地址 | |
| git remote add gitee https://mmxuxp:${{ secrets.GITEE_TOKEN }}@gitee.com/veyeimaging/raspberrypi.git | |
| # 推送源码 | |
| git push -f gitee HEAD:main | |
| # 可选:推送标签 | |
| git push -f gitee --tags |