Skip to content

Commit d2510ed

Browse files
authored
CI: try fix broken commitlint
Log:
1 parent ca83d25 commit d2510ed

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/license-check.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ jobs:
153153
ref: ${{ github.event.pull_request.head.sha }}
154154
repository: ${{ github.event.pull_request.head.repo.full_name }}
155155
allow-unsafe-pr-checkout: true
156+
- name: Fetch base ref and test refs
157+
run: |
158+
git fetch origin ${{ github.event.pull_request.base.sha }}
159+
git cat-file -e ${{ github.event.pull_request.base.sha }} || echo "Base SHA 不存在!"
160+
git cat-file -e ${{ github.event.pull_request.head.sha }} || echo "Head SHA 不存在!"
156161
- uses: zccrs/github-actions-spdx-checker@main
157162
with:
158163
include: '*.py,*.js,*.jsx,*.tsx,*.java,*.cpp,*.c,*.h,*.hpp,*.go,*.rs,*.rb,*.php,*.sh,*.xml,*.yaml,*.yml,*.qml,CMakeLists.txt,Makefile'

0 commit comments

Comments
 (0)