mirror of
				https://github.com/DaoCloud/public-image-mirror.git
				synced 2025-11-04 08:26:16 +08:00 
			
		
		
		
	Update workflow
This commit is contained in:
		
							
								
								
									
										29
									
								
								.github/workflows/deep-sync-check.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								.github/workflows/deep-sync-check.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
name: "Deep Sync Check"
 | 
			
		||||
on:
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
 | 
			
		||||
  schedule:
 | 
			
		||||
    - cron: "0 0 * * *"
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  deep-sync-check:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
      - name: Install dependencies
 | 
			
		||||
        run: |
 | 
			
		||||
          pip3 install yq
 | 
			
		||||
      - name: Check
 | 
			
		||||
        env:
 | 
			
		||||
          INCREMENTAL: "true"
 | 
			
		||||
          DEBUG: "true"
 | 
			
		||||
          QUICKLY: ""
 | 
			
		||||
        run: |
 | 
			
		||||
          ./scripts/check-image.sh
 | 
			
		||||
      - name: Update badge
 | 
			
		||||
        env:
 | 
			
		||||
          GH_TOKEN: ${{ secrets.GH_TOKEN }} # Generated for update gist
 | 
			
		||||
          BADGE_PATH: "gist://wzshiming/*/daocloud-deep-sync-badge.svg"
 | 
			
		||||
        run: |
 | 
			
		||||
          wget https://github.com/wzshiming/putingh/releases/download/v0.6.1/putingh_linux_amd64 -O /usr/local/bin/putingh && chmod +x /usr/local/bin/putingh
 | 
			
		||||
          GH_TOKEN="${GH_TOKEN}" putingh "${BADGE_PATH}" sync.svg
 | 
			
		||||
		Reference in New Issue
	
	Block a user