From 7a2177ea507c3137acb961cbc6fb976999b7af67 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Mon, 30 Mar 2020 17:35:49 +0900 Subject: 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. --- .github/workflows/mingw.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/mingw.yml') diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index 94ccf9e2f7..7fac83c60c 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -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 -- cgit v1.2.3