1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Split by &&

This commit is contained in:
Nobuyoshi Nakada 2019-10-25 02:24:00 +09:00
parent 967b924aa0
commit 826bbf9837
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -30,10 +30,14 @@ jobs:
choco install winflexbison3
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
- name: Checkout ruby/ruby
run: git clone --depth=50 https://github.com/ruby/ruby . && git reset --hard ${{ github.sha }}
run: |
git clone --depth=50 https://github.com/ruby/ruby .
git reset --hard ${{ github.sha }}
if: github.event_name == 'push'
- name: Checkout a pull request
run: git clone --depth=50 --branch=${{ github.event.pull_request.head.ref }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} . && git reset --hard ${{ github.event.pull_request.head.sha }}
run: |
git clone --depth=50 --branch=${{ github.event.pull_request.head.ref }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} .
git reset --hard ${{ github.event.pull_request.head.sha }}
if: github.event_name == 'pull_request'
- name: configure
run: |