爱意满满的作品展示区。
JustSong

分享一个用于生成 Github Readme Profile 的脚本

  •  
  •   JustSong ·
    songquanpeng · Feb 2, 2021 · 1928 views
    This topic created in 1945 days ago, the information mentioned may be changed or developed.

    描述

    该脚本可以自动从 Github 上爬取仓库信息,并以此来更新 README,最后自动提交更改到 Github 。

    预览: https://github.com/songquanpeng

    使用方法

    1. 首先 fork 本仓库: https://github.com/songquanpeng/songquanpeng
    2. 重命名为你的 Github 用户名。
    3. clone 你 fork 的仓库到本地。
    4. 执行脚本:python .\update.py,注意工作目录必须是 repo 的目录,如果设置了环境变量 ZHIHU (其值即你的知乎用户名),README 里还会显示你的知乎数据。
    5. (可选)通过设置定时任务来实现定时更新。

    仓库地址

    https://github.com/songquanpeng/songquanpeng

    用于生成知乎用户信息 svg 的仓库地址: https://github.com/songquanpeng/readme-stats

    (生成的 svg 是我昨天随手画的,有待重新设计)

    2 replies    2021-02-04 12:30:19 +08:00
    JustSong
        1
    JustSong  
    OP
       Feb 4, 2021
    改了一下,现在利用 Github Action 可以实现每周日自动更新,只需要 fork 仓库后添加两个 repo secrets:EMAIL ( git 的配置邮箱地址)和 NAME ( git 的配置用户名)。
    JustSong
        2
    JustSong  
    OP
       Feb 4, 2021
    又改了一下,现在只需要 fork 后把仓库名称重命名为你的 Github 用户名就好,什么都不用设置了😄。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1104 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 5414617a · 34ms · UTC 18:19 · PVG 02:19 · LAX 11:19 · JFK 14:19
    ♥ Do have faith in what you're doing.