Changes to a repository in the Actions workspace persist between steps in a workflow. This action is designed to be used in conjunction with other steps that modify or add files to your repository.
If you work with strings in your Python scripts and you're writing obscure logic to process them, then you need to look into ...