Skip to content

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

Closed

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.

Activity

  1. omgovich commented on Nov 7, 2025

    @omgovich

    We are having the same problem. Scheduled calls of the action force push the same translations and trigger the rest of the CI checks as well as unnecessary GitHub notifications.

  2. added a commit that references this issue on Jan 12, 2026
    402812e
  3. andrii-bodnar commented on Jan 12, 2026

    @andrii-bodnar
    Member

    Hi @eriktm, @omgovich!

    I've pushed a fix for this in the fix/skip-push-when-no-changes branch (#300)

    What changed:

    The action now fetches the remote localization branch before checkout, ensuring that downloaded translations are compared against the actual remote branch state (not the base branch). This allows the existing "nothing to commit" check to work correctly and skip unnecessary commits/pushes.

    To test before the next release:

    - uses: crowdin/github-action@fix/skip-push-when-no-changes

    Feedback is welcome! If testing goes well, this will be included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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