Skip to content

Do not commit and force push when no changes are made #296

@eriktm

Description

@eriktm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions