Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

mirror.yml 1.7 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  1. # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
  2. # This action mirrors the Ultralytics repository to other platforms like GitLab.
  3. # It runs only when the main branch is updated by the repository owner.
  4. # Additional platforms can be added by uncommenting the relevant sections.
  5. name: Mirror Repository
  6. on:
  7. # push:
  8. # branches:
  9. # - main
  10. workflow_dispatch:
  11. jobs:
  12. mirror:
  13. runs-on: ubuntu-latest
  14. if: github.repository == 'ultralytics/ultralytics' && github.actor == 'glenn-jocher'
  15. steps:
  16. - name: Checkout Source Repository (${{ github.repository }})
  17. uses: actions/checkout@v4
  18. with:
  19. fetch-depth: 0 # Fetch all history for mirroring
  20. - name: Run Git Config
  21. run: |
  22. git config --global user.name "UltralyticsAssistant"
  23. git config --global user.email "web@ultralytics.com"
  24. - name: Push to DagsHub
  25. run: |
  26. git remote add dagshub https://glenn-jocher:${{ secrets.DAGSHUB_TOKEN }}@dagshub.com/Ultralytics/ultralytics.git
  27. git push dagshub main --force
  28. # - name: Push to Gitee
  29. # run: |
  30. # git remote add gitee https://ultralytics:${{ secrets.GITEE_TOKEN }}@gitee.com/ultralytics/ultralytics.git
  31. # git push gitee main --force
  32. # - name: Push to GitCode
  33. # run: |
  34. # git remote add gitcode https://ultralytics:${{ secrets.GITCODE_TOKEN }}@gitcode.net/ultralytics/ultralytics.git
  35. # git push gitcode main --force
  36. # - name: Push to Bitbucket
  37. # run: |
  38. # git remote add bitbucket https://ultralytics:${{ secrets.BITBUCKET_APP_PASSWORD }}@bitbucket.org/ultralytics/ultralytics.git
  39. # git push bitbucket main --force
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...