建议将 Actions 的 .yml 文件中的提交信息改成 actions-bot,避免在贡献图中刷版
Opened this issue · 0 comments
Graysonnwu commented
嗨!您好
我在两年前参照了您的代码写了个 Bilibili-fans-actions,此后一直深受其困扰,因为它将我个人主页上的contribution graph全部刷绿了,如下图所示:
今天我找到解决方法了,将yml中的提交信息改成actions-bot即可,也将方法一并提供给您,希望能有所帮助。
如下所示:
When you want to tag commit as GitHub Actions then:
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git config user.name "github-actions[bot]"then
git tag -a -m "<msg>" <tag> <commit hash>
note:-a
is very important here lastlygit push
https://github.com/orgs/community/discussions/26560#discussioncomment-3531273