diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-03-30 17:35:49 +0900 |
---|---|---|
committer | usa <usa@garbagecollect.jp> | 2023-03-29 10:57:28 +0900 |
commit | c942a3cffefa1b35f4b0b06536c6f3a6bf312588 (patch) | |
tree | e9aed20771a88e34633a9f09221f9ba7f429fab8 | |
parent | f95f5fda8ae9b6a88cbd90096fa10b26bbc1932a (diff) | |
download | ruby-c942a3cffefa1b35f4b0b06536c6f3a6bf312588.tar.gz |
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.
-rw-r--r-- | .github/workflows/macos.yml | 2 | ||||
-rw-r--r-- | .github/workflows/mjit.yml | 2 | ||||
-rw-r--r-- | .github/workflows/ubuntu.yml | 2 | ||||
-rw-r--r-- | .github/workflows/windows.yml | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 9213e2a381..fe69c2b0bb 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -27,7 +27,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 diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index ecef045c38..3d68654547 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -29,7 +29,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 diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index a206886eef..06e7ea75e6 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -60,7 +60,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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 82cca9353b..fb4aa38efb 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -46,7 +46,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 |