Skip to content
/ greenpi Public template

Commit the number of days from a specific date to π times every day.

License

Notifications You must be signed in to change notification settings

AzoteGwei/greenpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GreenPi

以每天Pi个自动提交的速率为你的Github瓷砖墙增光添彩

快速入门

  1. 点按 Use this template 并创建一个仓库

  2. 配置 /main.py

    • 设置 ENABLETrue 来启用提交
    • 设置 START_DATE 为 Pi 的计算的起始日期
    • 设置 COMMIT_TIME 为 Git中的提交时间,需要符合HH:MM:SS+XX:YY的格式,XX:YY为时区,例如+08:00为北京时间
    • 设置 MESSAGE 为需要提交的信息,为了安全起见没有使用eval进行解析,如果您对此做出贡献的话我将不胜感激。
    • 设置 FAKE_COMMITFalse来启用真实的提交,否则将只会输出待执行的指令。
  3. 配置 /.github/workflows/pi.yml 取消注释schedule部分,以启用脚本的自动执行. 具体如下, 从

    on:
    push:
        branches:
        - main
    # schedule:
    #   - cron: "0 0 * * *"

    修改为

    on:
    # push:
    #   branches:
    #     - main
    schedule:
        - cron: "0 0 * * *"
  4. 修改 Repo Settings (部分情况下默认启动了R&W权限,但是请确认此权限是否正常.)

    • Actions permissions中修改Workflow permissionsRead and write permissions
  5. 完成了!现在你可以在每天的Pi个提交后,享受你的有深有浅的瓷砖墙了!

  6. (可选) 进入 Actions 中, 找到 Green PI Backward Commit, 进入后点按 Run Workflow. 这将自动补全之前的日期未进行的提交.

鸣谢

License

This project is licensed under the terms of the MIT license. See the LICENSE file.

About

Commit the number of days from a specific date to π times every day.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages