Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic conversion of line endings to CRLF in Batch files #1780

Closed
DecimalTurn opened this issue Jun 15, 2024 · 2 comments
Closed

Automatic conversion of line endings to CRLF in Batch files #1780

DecimalTurn opened this issue Jun 15, 2024 · 2 comments

Comments

@DecimalTurn
Copy link

DecimalTurn commented Jun 15, 2024

It seems that if a Batch file (.bat) is using LF line endings, it will be checked out with CRLF line endings (some sort of conversion occurs). I only observe this behavior in GitHub actions and not when downloading the repo manually from the GitHub UI.

Is this intended? I couldn't find anything in the code for this action that explicitly performs this conversion. Is this done directly by GitHub?

@DecimalTurn DecimalTurn changed the title Automatic conversion of line endings to CRLF on Batch files Automatic conversion of line endings to CRLF in Batch files Jun 15, 2024
@DecimalTurn
Copy link
Author

Here a quick demo:
https://github.com/DecimalTurn/Demo-BatchFile-With-LF/

Looking at the action, I get:
image

@DecimalTurn
Copy link
Author

Duplicate of #135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant