Skip to content

Commit eda50d0

Browse files
authored
chore: add zccrs' year check CI
添加 zccrs 的年份检查 CI,之前的年份检查 CI 不再导致失败(后续可能移除) Log:
1 parent b612c47 commit eda50d0

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/license-check.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
5151
- name: Generate Reports
5252
# 使用 outcome 和 outputs 来规避静态检查警告
53-
if: steps.lcheck.outcome != 'success' || steps.year_check.outputs.failed == 'true'
53+
if: steps.lcheck.outcome != 'success'
5454
run: |
5555
printf "## License & Copyright Check Report\n\n" >> $GITHUB_STEP_SUMMARY
5656
@@ -67,6 +67,7 @@ jobs:
6767
# 2. 处理年份检查错误
6868
if [ -f year_check_report.md ]; then
6969
echo -e "\n---\n" >> $GITHUB_STEP_SUMMARY
70+
echo -e "\n*⚠️此处年份问题的警告不影响运行结果,仅供参考。请优先处理前述 REUSE lint 问题!⚠️*\n\n" >> $GITHUB_STEP_SUMMARY
7071
cat year_check_report.md >> $GITHUB_STEP_SUMMARY
7172
fi
7273
@@ -107,3 +108,18 @@ jobs:
107108
- name: Check and Reflect Status
108109
if: steps.rcheck.outcome != 'success' || steps.zhrcheck.outcome != 'success'
109110
run: exit 1
111+
Check-SPDX-Copyright:
112+
runs-on: ubuntu-latest
113+
steps:
114+
- uses: actions/checkout@v5
115+
with:
116+
fetch-depth: 0
117+
ref: ${{ github.event.pull_request.head.sha }}
118+
- uses: zccrs/github-actions-spdx-checker@main
119+
if: contains(github.event.repository.name, 'dde') || contains(github.event.repository.name, 'dtk')
120+
with:
121+
include: '*.py,*.js,*.jsx,*.tsx,*.java,*.cpp,*.c,*.h,*.hpp,*.go,*.rs,*.rb,*.php,*.sh,*.xml,*.yaml,*.yml,*.qml,CMakeLists.txt,Makefile'
122+
exclude: 'vendor/**,node_modules/**'
123+
holder: '*UnionTech*'
124+
base: ${{ github.event.pull_request.base.sha }}
125+
head: ${{ github.event.pull_request.head.sha }}

0 commit comments

Comments
 (0)