diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-05-11 18:37:08 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-05-12 17:15:22 +0900 |
commit | b16acf8baa4899dc4e39246dcb89b351e4adfa13 (patch) | |
tree | 74ae38cc4d7c2d73941d79c6a3c5a5d1f0a494bb /.github/workflows/windows.yml | |
parent | ee518cf077b856fddea7dfae5d85f3c3117dd616 (diff) | |
download | ruby-b16acf8baa4899dc4e39246dcb89b351e4adfa13.tar.gz |
.github: use actions/checkout@v2 again
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r-- | .github/workflows/windows.yml | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 5048b46b87..05bea72d1d 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -31,18 +31,10 @@ jobs: - name: Install libraries with chocolatey run: | choco install --no-progress openssl winflexbison3 - # 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 -C src reset --hard ${{ github.sha }} - if: github.event_name == 'push' - shell: bash - - name: Checkout a pull request - run: | - git clone --single-branch --depth=50 --branch=${{ github.event.pull_request.head.ref }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} src - git -C src reset --hard ${{ github.event.pull_request.head.sha }} - if: github.event_name == 'pull_request' + - uses: actions/checkout@v2 + with: + fetch-depth: 128 + path: src - run: ./src/tool/actions-commit-info.sh shell: bash id: commit_info |