Skip to content

Add autocrlf option for Windows #226

Open
@jeroen

Description

@jeroen

I'm frequently debugging issues on my Windows builds which are due to the default git behavior of automatically changing line endings upon checkout. This default behavior sort-of makes sense for Windows users to edit text files in editors, but for CI it's really unfortunate.

It would be really nice to have a native option to disable autocrlf, and checkout the repo as-is.

Currently I use this as a workaround (before running this action):

    steps:
      - name: Prepare git
        run: git config --global core.autocrlf false

      - uses: actions/checkout@v2

But it would be nice if I could tell all the users of my action that they can just use:

- uses: actions/checkout@v2
  with: 
    autocrlf: false

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions