mirror-repository.yml 456 B

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