mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use --depth
on pull request
`--shallow-since=yesterday` for COMMIT_NUMBER_OF_DAY of `tool/actions-commit-info.sh`. COMMIT_NUMBER_OF_DAY is mainly for master branch. And `--shallow-since=yesterday` may fail on pull request. So this revert to `--depth` on pull request.
This commit is contained in:
parent
f2807f4ec0
commit
7a2177ea50
Notes:
git
2020-03-30 18:48:14 +09:00
5 changed files with 5 additions and 5 deletions
2
.github/workflows/macos.yml
vendored
2
.github/workflows/macos.yml
vendored
|
@ -21,7 +21,7 @@ jobs:
|
|||
if: github.event_name == 'push'
|
||||
- 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
|
||||
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'
|
||||
- run: ./src/tool/actions-commit-info.sh
|
||||
|
|
2
.github/workflows/mingw.yml
vendored
2
.github/workflows/mingw.yml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
|||
shell: bash
|
||||
- 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
|
||||
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'
|
||||
- run: ./src/tool/actions-commit-info.sh
|
||||
|
|
2
.github/workflows/mjit.yml
vendored
2
.github/workflows/mjit.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
if: github.event_name == 'push'
|
||||
- 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
|
||||
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'
|
||||
- run: ./src/tool/actions-commit-info.sh
|
||||
|
|
2
.github/workflows/ubuntu.yml
vendored
2
.github/workflows/ubuntu.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
|||
if: github.event_name == 'push'
|
||||
- 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
|
||||
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'
|
||||
- run: ./src/tool/actions-commit-info.sh
|
||||
|
|
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
|
@ -40,7 +40,7 @@ jobs:
|
|||
shell: bash
|
||||
- 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
|
||||
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'
|
||||
- run: ./src/tool/actions-commit-info.sh
|
||||
|
|
Loading…
Reference in a new issue