Skip to content

Commit cb8c30c

Browse files
committed
Update GitHub Actions workflows for improved analysis and artifact upload
- Changed the command in the analyze workflow to use the Python module for executing the GitHub Stats Analyzer, enhancing compatibility and maintainability. - Updated the upload artifact action in the test workflow from version 3 to version 4, ensuring access to the latest features and improvements.
1 parent 6324d04 commit cb8c30c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/analyze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
echo "```" >> results/RESULT.md
3939
4040
# 运行分析器并将输出重定向到文件
41-
github-stats ${{ github.repository_owner }} --access-level full >> results/RESULT.md
41+
python -m github_stats_analyzer.main ${{ github.repository_owner }} --access-level full >> results/RESULT.md
4242
4343
echo "```" >> results/RESULT.md
4444

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
echo "Test completed at: $(date -u)" >> test_report.md
159159
160160
- name: Upload test report
161-
uses: actions/upload-artifact@v3
161+
uses: actions/upload-artifact@v4
162162
with:
163163
name: test-report
164164
path: test_report.md

0 commit comments

Comments
 (0)