GitHub主页3D图表显示
1. 创建自己的github主页属性项目——跟你github用户名一致即可, 比如我github名字叫FlameskyDexive, 创建一个FlameskyDexive的同名项目,勾选生成ReadMe文件。
2. 开启Action的读写权限,勾选后保存即可:
- Settings -> Action -> General -> Workflow permissions
- read and write permissions
3. 创建WorkFlow文件:
- 项目Action里面点击创建一个WorkFlow文件,名字叫Profile3D
- 把下面脚本覆盖保存
name: GitHub-Profile-3D-Contrib on: schedule: # 03:00 JST == 18:00 UTC - cron: "0 18 * * *" workflow_dispatch: jobs: build: runs-on: ubuntu-latest name: generate-github-profile-3d-contrib steps: - uses: actions/checkout@v3 - uses: yoshi389111/github-profile-3d-contrib@0.7.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} USERNAME: ${{ github.repository_owner }} - name: Commit & Push run: | git config user.name github-actions git config user.email github-actions@github.com git add -A . git commit -m "generated" git push
环境变量:
GITHUB_TOKEN
: (必须) 访问 tokenUSERNAME
: (必须) 目标用户名MAX_REPOS
: (可选) 最大仓库数量, 默认 100 个SETTING_JSON
: (可选) 设置 json 的路径. 参考示例-settings/*.json
跟src/type.ts
在yoshi389111/github-profile-3d-contrib
仓库查看详情.
4. 进入Action找到刚刚创建好的action文件,选中,点击Run workflow等待执行完成。
脚本生成的文件放在对应的profile-3d-contrib文件夹,分别是以下几个文件
profile-3d-contrib/profile-green-animate.svg profile-3d-contrib/profile-green.svg profile-3d-contrib/profile-season-animate.svg profile-3d-contrib/profile-season.svg profile-3d-contrib/profile-south-season-animate.svg profile-3d-contrib/profile-south-season.svg profile-3d-contrib/profile-night-view.svg profile-3d-contrib/profile-night-green.svg profile-3d-contrib/profile-night-rainbow.svg profile-3d-contrib/profile-gitblock.svg
5. 修改readme文件内容成以下文本:
profile-3d-contrib/profile-customize.svg
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
2023-12-23 Unity最新一键清理Prefab中所有MissingComponent