diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-01-13 10:02:04 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2020-01-30 13:35:17 +0900 |
commit | 5eced3c030f39d10e193c5e33a70365d8e011bb1 (patch) | |
tree | 50e241078417069a5518987725b03500b39762fe /.github | |
parent | 6ec6acd76ed7c718a469841afe4f32571e757c9d (diff) |
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.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/cygwin.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index b8360d4523..a066b35a6a 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -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 |