Skip to content

Crowdin Action force pushes as github-actions user, so PR checks don't get triggered #306

@nyadav810

Description

@nyadav810

Is your feature request related to a problem? Please describe.

Background:

  • My repository has a PR check set up to run on localization PRs opened by the Crowdin GH Action
  • Once that PR check passes, the PR is auto-merged
  • I'm using a Personal Access Token (specified via env.GITHUB_TOKEN) for a step that has create_pull_request: true
  • The way our localization pipeline is setup, new translations can come in and get force pushed to an existing PR if that PR is not merged yet.

Problem:

  • For force pushes, the commit author is github-actions (configured here)
  • PR checks do not trigger for these commits, because Github Actions by design will not trigger other Github Action workflow runs (see Github docs).
  • As a result, these PRs sit un-merged (because the check to auto-merge never runs), and someone has notice that, and then close & reopen the PR to get the PR checks to trigger.

Describe the solution you'd like

  • Ideally we could use the value specified by GITHUB_TOKEN to push to the branch, or somehow provide an option to push to the branch not as github-actions. We have a 'bot' Github user that owns the PAT that would be ideal to use.

Describe alternatives you've considered

  • N/A, we've just lived with this problem for a while

Example:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions