Update Star Track profile #43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 生成GitHub统计卡片 | |
| on: | |
| schedule: | |
| - cron: '0 0 * * 0' # 每周日运行 | |
| workflow_dispatch: # 允许手动触发 | |
| permissions: | |
| contents: write # 需要写入权限来更新 README | |
| jobs: | |
| generate-stats: | |
| runs-on: ubuntu-latest | |
| name: 生成GitHub统计数据卡片 | |
| steps: | |
| - name: 检出代码 | |
| uses: actions/checkout@v4 | |
| - name: 生成GitHub统计卡片 | |
| id: stats | |
| uses: ./ | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| username: ${{ github.repository_owner }} | |
| scope: 'all' # 包括个人和组织仓库 | |
| readme_path: 'README.md' | |
| card_title: 'GitHub 统计数据' | |
| - name: 显示生成的统计数据 | |
| run: | | |
| echo "✨ 统计完成! 等级: ${{ steps.stats.outputs.developer_grade }}, 分数: ${{ steps.stats.outputs.developer_score }}" | |
| echo "⭐ 星标总数: ${{ steps.stats.outputs.stars_count }}" | |
| echo "🔄 处理时间: ${{ steps.stats.outputs.execution_time }} 秒" |