{"id":17293721,"url":"https://github.com/shink/actions-bot","last_synced_at":"2025-06-10T16:38:08.853Z","repository":{"id":108149330,"uuid":"236954172","full_name":"shink/actions-bot","owner":"shink","description":"Several robots based on GitHub Actions.","archived":false,"fork":false,"pushed_at":"2021-01-05T09:43:44.000Z","size":46,"stargazers_count":21,"open_issues_count":0,"forks_count":25,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T00:41:54.356Z","etag":null,"topics":["email","githubactions","spider"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shink.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}},"created_at":"2020-01-29T10:14:50.000Z","updated_at":"2025-01-09T19:35:48.000Z","dependencies_parsed_at":"2023-05-18T09:00:15.679Z","dependency_job_id":null,"html_url":"https://github.com/shink/actions-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shink%2Factions-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shink%2Factions-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shink%2Factions-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shink%2Factions-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shink","download_url":"https://codeload.github.com/shink/actions-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248870413,"owners_count":21175037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["email","githubactions","spider"],"created_at":"2024-10-15T10:48:45.138Z","updated_at":"2025-04-14T11:25:55.540Z","avatar_url":"https://github.com/shink.png","language":"Python","readme":"# Several robots based on GitHub Actions 🤖\r\n\r\n\u003cp align=\"center\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/github/license/shink/actions-bot.svg\"/\u003e\r\n    \u003cimg src=\"https://img.shields.io/github/repo-size/shink/actions-bot.svg\"/\u003e\r\n    \u003cimg src=\"https://img.shields.io/github/last-commit/shink/actions-bot.svg\"/\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/language-python-blue.svg\"\u003e\r\n\u003c/p\u003e\r\n\r\n目前包含两个 email 机器人，都是基于 GitHub Actions 实现的\r\n\r\n- weather-emailbot：定时发送天气邮件，参照了阮一峰老师的一篇教程：[GitHub Actions 教程：定时发送天气邮件](http://www.ruanyifeng.com/blog/2019/12/github_actions.html)\r\n\r\n- csdn-emailbot：爬取 CSDN profile 信息，在 runner 服务器部署爬虫环境，并定时发送邮件，可参考 [我的博客](https://blog.csdn.net/sculpta/article/details/104142607)\r\n\r\n## 使用方法 ʕ •ᴥ•ʔ\r\n\r\n### 1. 首先点击右上角 🌟Star , 🔱Fork（推荐）或 Clone\r\n\r\n```git\r\ngit clone https://github.com/shink/actions-bot.git\r\n```\r\n\r\n\u003e **注意：** 向 master 分支 push 时才会触发 Actions。Fork 本仓库后 clone 到本地，随便修改一点内容并 push 到 master 分支，即可触发\r\n\r\n### 2. 修改\r\n\r\n  - 对于 weather-emailbot，需修改 `main.sh` 中的城市信息（具体可参考 [chubin/wttr.in](https://github.com/chubin/wttr.in)）以及将 `weather.yml` 中 Send mail 步骤的 `to` 字段修改你要接收邮件的邮箱地址\r\n  \r\n  - 对于 csdn-emailbot，需修改 `main.sh` 中的 `CSDN_ID` 为你的 CSDN_ID，以及将 `csdn-emailbot.yml` 中 Send mail 步骤的 `to` 字段修改你要接收邮件的邮箱地址，另外还可以自定义更多玩法，可参考 [我的博客](https://blog.csdn.net/sculpta/article/details/104142607)\r\n\r\n### 3. 配置 SMTP 邮件发送服务\r\n\r\n以网易邮箱为例，选择「设置」中的 「POP3/SMTP/IMAP」，打上勾 ✔ 之后保存，然后设置密码\r\n\r\n**注意**：该密码不能跟邮箱密码一致\r\n\r\n然后，将 SMTP 的用户名和密码添加到仓库的「Secrets」中，如下图所示：\r\n\r\n\u003cp align=\"center\"\u003e\r\n    \u003cimg src=\"https://gitee.com/tsund/data/raw/master/blog/2020/01/github-actions-spider/img.png\" width=\"800\"\u003e\r\n\u003c/p\u003e\r\n\r\n其中，`MAIL_USERNAME` 是你开通 SMTP 服务的邮箱，`MAIL_PASSWORD` 是你设置的 SMTP 服务的密码（**不是邮箱的登录密码**）\r\n\r\n### 4. 创建 Workflow\r\n\r\n进入仓库的「Actions」，点击「New workflow」、「Set up a workflow yourself」，然后复制 `.github/workflows/` 文件夹下的 `yml` 文件代码，粘贴并 commit，完成 👌\r\n\r\n### 5. Just Enjoy It\r\n\r\n## License\r\n\r\n[Apache License 2.0](LICENSE)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshink%2Factions-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshink%2Factions-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshink%2Factions-bot/lists"}