This action requires that the Unity Editor is installed on the runner. You can use unity-setup action to install Unity Editor before using this action. UNITY_EDITOR ...
GitHub Repositories might be better for simple text editing, as it opens your repository instantly, without using clone. Also with this extension you don't need to worry about pushing/pulling anything ...