feat: skip commit & push on nothing changed
This commit is contained in:
		
							parent
							
								
									cc9cb3224c
								
							
						
					
					
						commit
						9d4d4eb7fe
					
				|  | @ -114,6 +114,6 @@ class Git: | ||||||
|                     f'File path "{file}" does not exist. Skipping this file.' |                     f'File path "{file}" does not exist. Skipping this file.' | ||||||
|                 ) |                 ) | ||||||
|                 continue |                 continue | ||||||
|  |         if repo.is_dirty(untracked_files=True) or repo.index.diff(None): | ||||||
|             repo.index.commit(commit_message) |             repo.index.commit(commit_message) | ||||||
|         origin = repo.remote(name="origin") |             repo.remote(name="origin").push() | ||||||
|         origin.push() |  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user