mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Checkout with git on cygwin for EOL code
`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.
This commit is contained in:
parent
61ff5cd5fd
commit
c9b1969fa3
1 changed files with 2 additions and 2 deletions
4
.github/workflows/cygwin.yml
vendored
4
.github/workflows/cygwin.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue