mirror-repository.yml 429 B

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