mirror of
				https://github.com/suyiiyii/SIMS.git
				synced 2025-11-04 15:54:52 +08:00 
			
		
		
		
	feat(github-actions): 添加同步到Gitea仓库的工作流
This commit is contained in:
		
							parent
							
								
									f446e5daab
								
							
						
					
					
						commit
						65c3ed655f
					
				
							
								
								
									
										16
									
								
								.github/workflows/gitea-sync.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/gitea-sync.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,16 @@
 | 
			
		||||
name: gitea-sync.yml
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches: [ "main", "manifest" ]
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  trigger-gitea-sync:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Trigger Gitea sync
 | 
			
		||||
        run: |
 | 
			
		||||
          echo "Triggering Gitea sync"
 | 
			
		||||
          curl 'https://git.suyiiyii.top/api/v1/repos/ssyg/SIMS/mirror-sync' -X POST  -H 'Authorization: token ${{ secrets.GITEATOKEN }}'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user