fix(script): Upload a media to Minio even if a commit is pushed to main
				
					
				
			This commit is contained in:
		@@ -10,6 +10,7 @@ chop($git_commit_sha);
 | 
			
		||||
 | 
			
		||||
if ( $git_branch eq $main_branch) {
 | 
			
		||||
	print "Syncing to the production bucket\n";
 | 
			
		||||
	print `rclone copy -P static "$common_bucket/$git_commit_sha"`;
 | 
			
		||||
	print `rclone sync -P "$common_bucket/$git_commit_sha" "$main_bucket/"`;
 | 
			
		||||
} else {
 | 
			
		||||
	print "Creating a new hashed dir in the common bucket\n";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user