Skip to content

Checking out a branch with uncommited changes returns exit code of 1 and causes the action to be marked as failed #22

@NMorrison325is

Description

@NMorrison325is

Hi, we are using this action to keep some files in sync across our projects. However we noticed that sometimes the action is marked as failed even though it created created the pull requests to sync the files in the other projects as expected.

While investigating we noticed that checking out a branch with line ending changes leads to the branch having changes that are obviously not staged for commit and this causes the action exit status to be 1. Failing the step even through the file sync completed successfully.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions