Skip to content

Commit

Permalink
Checkout with git on cygwin for EOL code
Browse files Browse the repository at this point in the history
`shell: bash` runs bash on msys which prefers git on msys too,
then checked out in CRLF mode.  Cygwin sed doesn't consider the CR
a part of EOL code, though.
  • Loading branch information
nobu committed Jan 13, 2020
1 parent 61ff5cd commit c9b1969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cygwin.yml
Expand Up @@ -44,10 +44,10 @@ jobs:
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
- name: Checkout ruby
run: |
git clone --single-branch --shallow-since=yesterday --branch=${GITHUB_REF#refs/heads/} https://github.com/${{ github.repository }} src
git clone --single-branch --shallow-since=yesterday --branch=%GITHUB_REF:refs/heads/=% https://github.com/${{ github.repository }} src
git -C src reset --hard ${{ github.sha }}
if: github.event_name == 'push'
shell: bash
shell: cmd
- name: Checkout a pull request
run: |
git clone --single-branch --shallow-since=yesterday --branch=${{ github.event.pull_request.head.ref }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} src
Expand Down

0 comments on commit c9b1969

Please sign in to comment.