github-action icon indicating copy to clipboard operation
github-action copied to clipboard

Do not commit and force push when no changes are made

Open eriktm opened this issue 2 months ago • 1 comments

Is your feature request related to a problem? Please describe. We are looking at migrating from the native github-integration in Crowdin to using this action to maintain least privilege permissions in a better way and attribute the commits to an app/bot user.

With the native integration we could have the sync set to every hour, and nothing would happen in the repo unless there were actual changes. These changes would also be committed as new commits in the localization branch and appended to the pull request.

When running this action, a new commit is created and force pushed on every run, even though no more changes have been made since last time the action was run.

Describe the solution you'd like For each workflow run, the action should commit and push any additional changes to the localization branch. If, after downloading translations, the localization branch does not have any changes - a commit is not necessary and should not be done.

Describe alternatives you've considered The alternative would be to build a custom action with the required logic, but we would like to avoid that.

Additional context ~Add any other context or screenshots about the feature request here.~

eriktm avatar Oct 27 '25 20:10 eriktm