From 830df360ae7dd5f045d177c5bc57746a9a6d337e Mon Sep 17 00:00:00 2001 From: Rangi Date: Sat, 8 May 2021 23:22:31 -0400 Subject: [PATCH] Specify that all .sh files need Unix line endings The `git config --global --unset core.autocrlf` command was failing in the "Create release artifacts" workflow, so this is an alternate method of fixing issue #841. --- .gitattributes | 2 ++ .github/workflows/create-release-artifacts.yaml | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..75fc9b71 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Shell scripts need Unix line endings (see https://github.com/gbdev/rgbds/issues/841) +*.sh text eol=lf diff --git a/.github/workflows/create-release-artifacts.yaml b/.github/workflows/create-release-artifacts.yaml index ed4c9543..dc894f99 100644 --- a/.github/workflows/create-release-artifacts.yaml +++ b/.github/workflows/create-release-artifacts.yaml @@ -8,9 +8,6 @@ jobs: windows: runs-on: windows-2019 steps: - - name: Disable auto-CRLF # This breaks scripts (see https://github.com/gbdev/rgbds/issues/841) - run: | - git config --global --unset core.autocrlf - uses: actions/checkout@v2 - name: Get version from tag shell: bash