Skip to content

Commit 0c9a7dd

Browse files
authored
chore: update setup-python version
Log:
1 parent eb0ef36 commit 0c9a7dd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/license-check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313

1414
- name: Setup Python
1515
id: python
16-
uses: actions/setup-python@v5
16+
uses: actions/setup-python@v6
1717
with:
18-
python-version: "3.12"
18+
python-version: "3.13"
1919

2020
- name: Run REUSE lint
2121
id: lcheck
@@ -44,7 +44,7 @@ jobs:
4444
CHANGED_FILES=$(git diff --name-only $BASE_SHA...$HEAD_SHA | tr '\n' ' ')
4545
4646
# 执行 Python 脚本,如果失败则记录 output 变量
47-
if ! pipx run reuse==6.2.0 spdx | python3 .github/scripts/check_copyright.py $CHANGED_FILES > year_check_report.md 2>&1; then
47+
if ! pipx run reuse==5.1.1 spdx | python3 .github/scripts/check_copyright.py $CHANGED_FILES > year_check_report.md 2>&1; then
4848
echo "failed=true" >> $GITHUB_OUTPUT
4949
fi
5050
@@ -59,15 +59,15 @@ jobs:
5959
echo "### ❌ REUSE Compliance Check Failed" >> $GITHUB_STEP_SUMMARY
6060
echo "<details><summary>Click to view lint details</summary>" >> $GITHUB_STEP_SUMMARY
6161
echo -e "\n\`\`\`" >> $GITHUB_STEP_SUMMARY
62-
pipx run reuse==6.2.0 lint >> $GITHUB_STEP_SUMMARY || true
62+
pipx run reuse==5.1.1 lint >> $GITHUB_STEP_SUMMARY || true
6363
echo -e "\`\`\`\n" >> $GITHUB_STEP_SUMMARY
6464
echo "</details>" >> $GITHUB_STEP_SUMMARY
6565
fi
6666
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
70+
echo -e "\n*⚠️此处若有年份问题的警告,也不影响运行结果,仅供参考。请优先处理前述 REUSE lint 问题!⚠️*\n\n" >> $GITHUB_STEP_SUMMARY
7171
cat year_check_report.md >> $GITHUB_STEP_SUMMARY
7272
fi
7373

0 commit comments

Comments
 (0)