mirror-repository.yml 469 B

123456789101112131415161718192021222324
  1. name: Sync Remote Repository
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - next
  7. - tree
  8. - next-dev
  9. - dev
  10. jobs:
  11. sync-repo:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v3
  15. with:
  16. fetch-depth: 0
  17. - uses: yesolutions/mirror-action@master
  18. with:
  19. REMOTE: 'https://git.pig4cloud.com/pig/CGTM.git'
  20. GIT_USERNAME: lengleng
  21. GIT_PASSWORD: ${{ secrets.GIT_GOGS_PASSWORD }}