Spaces:
				
			
			
	
			
			
		Running
		
			on 
			
			Zero
	
	
	
			
			
	
	
	
	
		
		
		Running
		
			on 
			
			Zero
	
		John Ho
		
	commited on
		
		
					Commit 
							
							·
						
						c5ab6e1
	
1
								Parent(s):
							
							ca46eec
								
fixed push logic in the last step
Browse files
    	
        .github/workflows/deploy_to_hf_space.yaml
    CHANGED
    
    | @@ -85,7 +85,9 @@ jobs: | |
| 85 | 
             
                      FORCE_PUSH: ${{ secrets.FORCE_PUSH }}
         | 
| 86 | 
             
                    run: |
         | 
| 87 | 
             
                      if [ -z "$FORCE_PUSH" ]; then
         | 
| 88 | 
            -
             | 
|  | |
| 89 | 
             
                      else
         | 
| 90 | 
            -
             | 
|  | |
| 91 | 
             
                      fi
         | 
|  | |
| 85 | 
             
                      FORCE_PUSH: ${{ secrets.FORCE_PUSH }}
         | 
| 86 | 
             
                    run: |
         | 
| 87 | 
             
                      if [ -z "$FORCE_PUSH" ]; then
         | 
| 88 | 
            +
                        echo "::notice::FORCE_PUSH secret is not set."
         | 
| 89 | 
            +
                        git push https://GF-John:$HF_TOKEN@huggingface.co/spaces/GF-John/video-caption main
         | 
| 90 | 
             
                      else
         | 
| 91 | 
            +
                        echo "::notice::FORCE_PUSH secret is set. Doing Force Push toHugging Face Space."
         | 
| 92 | 
            +
                        git push -f https://GF-John:$HF_TOKEN@huggingface.co/spaces/GF-John/video-caption main
         | 
| 93 | 
             
                      fi
         | 
