Skip to content

Commit

Permalink
CRLF/LF support for all platforms (#103)
Browse files Browse the repository at this point in the history
* CRLF/LF support for all platforms

* Update action.yml

* Update action.yml

* Update entrypoint.sh
  • Loading branch information
jackton1 authored Nov 6, 2021
1 parent 1fea1e1 commit c154cc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ runs:
id: verify-changed-files
shell: bash
env:
PLATFORM: ${{ runner.os }}
GITHUB_SERVER_URL: ${{ github.server_url }}
GITHUB_REPOSITORY: ${{ github.repository }}
# INPUT_<VARIABLE_NAME> is not available in Composite run steps
Expand Down
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

set -e

git config core.autocrlf true
if [[ "$PLATFORM" == 'Windows' ]]; then
git config core.autocrlf true
else
git config core.autocrlf input
fi

CHANGED_FILES=()

Expand Down

0 comments on commit c154cc6

Please sign in to comment.