mirror-repository.yml 441 B

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