{"id":22366771,"url":"https://github.com/fundgao/github-green","last_synced_at":"2026-05-05T23:34:17.246Z","repository":{"id":257065313,"uuid":"775769161","full_name":"fundgao/github-green","owner":"fundgao","description":"Github自动打卡 | Node + shelljs ｜ Github Action 　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　","archived":false,"fork":false,"pushed_at":"2026-05-01T03:26:28.000Z","size":117,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-01T05:12:07.897Z","etag":null,"topics":["green","nodejs","shell"],"latest_commit_sha":null,"homepage":"https://fundgao.github.io/xiuxian","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fundgao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-22T02:15:52.000Z","updated_at":"2026-05-01T03:26:32.000Z","dependencies_parsed_at":"2024-11-08T05:17:11.113Z","dependency_job_id":"98e6843f-c369-443c-bed9-c3957640b5e2","html_url":"https://github.com/fundgao/github-green","commit_stats":null,"previous_names":["fundgao/github-green"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fundgao/github-green","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fundgao%2Fgithub-green","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fundgao%2Fgithub-green/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fundgao%2Fgithub-green/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fundgao%2Fgithub-green/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fundgao","download_url":"https://codeload.github.com/fundgao/github-green/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fundgao%2Fgithub-green/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672676,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["green","nodejs","shell"],"created_at":"2024-12-04T18:15:39.302Z","updated_at":"2026-05-05T23:34:17.230Z","avatar_url":"https://github.com/fundgao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github 自动打卡\n\n## 思路\n\n- 服务器安装 Git，并在 Github 贴上 ssh key\n- 拉取项目\n- 编写 node 脚本，通过 `shelljs` `git pull`、编辑文件 `fs.appendFileSync`、`git add`、`git commit`、`git push`\n- 定时，每天定时提交一次\n- 服务器启动 node 服务\n\n## RUN\n\n- `npm install`\n- `npm run start`\n\n## 卡点\n\nDocker 在 app 目录下工作，此处没有 git 文件，无法完成 git 相关操作\n\n## 解决\n\n通过云服务器上的终端，运行永久命令\n\n- `nohup npm run start \u0026`\n\n  如果报错 `nohup: ignoring input and appending output to 'nohup.out'`\n\n- `nohup npm run start \u003e /dev/null 2\u003e /dev/null \u0026`\n\n- 查看 nohup 进程 `ps -aux | grep nohup` `ps aux | grep 'command_starting_with_nohup'`\n- 杀进程 `kill -9 PID`\n\n## 怎样让你的 GitHub 365 天都保持全绿\n\n- [怎样让你的 GitHub 365 天都保持全绿？](https://cloud.tencent.com/developer/article/1796848)\n\n\n# Github Action\n\n通过 Github Action，定时更新仓库。\n\n- 新增 Action 配置文件 `.github/workflows/ci.yml`\n- 修改邮箱 `git config --local user.email \"email\"`\n- 修改提交描述 `git commit --allow-empty -m \"feat: github auto commit by github action\"`\n- Done\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffundgao%2Fgithub-green","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffundgao%2Fgithub-green","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffundgao%2Fgithub-green/lists"}