`--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:
Kazuhiro NISHIYAMA 2020-03-30 17:35:49 +09:00 коммит произвёл Kazuhiro NISHIYAMA
Родитель f2807f4ec0
Коммит 7a2177ea50
5 изменённых файлов: 5 добавлений и 5 удалений

2
.github/workflows/macos.yml поставляемый
Просмотреть файл

@ -21,7 +21,7 @@ jobs:
if: github.event_name == 'push' if: github.event_name == 'push'
- name: Checkout a pull request - name: Checkout a pull request
run: | 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 }} git -C src reset --hard ${{ github.event.pull_request.head.sha }}
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
- run: ./src/tool/actions-commit-info.sh - run: ./src/tool/actions-commit-info.sh

2
.github/workflows/mingw.yml поставляемый
Просмотреть файл

@ -39,7 +39,7 @@ jobs:
shell: bash shell: bash
- name: Checkout a pull request - name: Checkout a pull request
run: | 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 }} git -C src reset --hard ${{ github.event.pull_request.head.sha }}
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
- run: ./src/tool/actions-commit-info.sh - run: ./src/tool/actions-commit-info.sh

2
.github/workflows/mjit.yml поставляемый
Просмотреть файл

@ -26,7 +26,7 @@ jobs:
if: github.event_name == 'push' if: github.event_name == 'push'
- name: Checkout a pull request - name: Checkout a pull request
run: | 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 }} git -C src reset --hard ${{ github.event.pull_request.head.sha }}
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
- run: ./src/tool/actions-commit-info.sh - run: ./src/tool/actions-commit-info.sh

2
.github/workflows/ubuntu.yml поставляемый
Просмотреть файл

@ -32,7 +32,7 @@ jobs:
if: github.event_name == 'push' if: github.event_name == 'push'
- name: Checkout a pull request - name: Checkout a pull request
run: | 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 }} git -C src reset --hard ${{ github.event.pull_request.head.sha }}
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
- run: ./src/tool/actions-commit-info.sh - run: ./src/tool/actions-commit-info.sh

2
.github/workflows/windows.yml поставляемый
Просмотреть файл

@ -40,7 +40,7 @@ jobs:
shell: bash shell: bash
- name: Checkout a pull request - name: Checkout a pull request
run: | 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 }} git -C src reset --hard ${{ github.event.pull_request.head.sha }}
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
- run: ./src/tool/actions-commit-info.sh - run: ./src/tool/actions-commit-info.sh