{"id":23111834,"url":"https://github.com/dext7r/pushnotifications","last_synced_at":"2025-08-16T19:30:59.993Z","repository":{"id":237582995,"uuid":"794569829","full_name":"dext7r/pushNotifications","owner":"dext7r","description":"基于github action的消息推送 | Message push based on github action","archived":false,"fork":false,"pushed_at":"2024-06-09T15:56:43.000Z","size":576,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-11-19T19:24:49.596Z","etag":null,"topics":["actions","github","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/dext7r/pushNotifications","language":"TypeScript","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/dext7r.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":"2024-05-01T13:41:07.000Z","updated_at":"2024-06-09T15:56:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac1ebb41-175c-473e-920b-733ca11311bf","html_url":"https://github.com/dext7r/pushNotifications","commit_stats":null,"previous_names":["dext7r/pushnotifications"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2FpushNotifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2FpushNotifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2FpushNotifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2FpushNotifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dext7r","download_url":"https://codeload.github.com/dext7r/pushNotifications/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230051322,"owners_count":18165199,"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":["actions","github","github-actions"],"created_at":"2024-12-17T02:11:08.802Z","updated_at":"2025-08-16T19:30:59.943Z","avatar_url":"https://github.com/dext7r.png","language":"TypeScript","readme":"\u003ch1 align=\"center\"\u003epushNotifications\u003c/h1\u003e\n\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@dext7r/push-notifications\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-1.0.1-blue.svg?cacheSeconds=2592000\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/dext7r/pushNotifications/actions/workflows/push-notifications.yml\" target=\"_blank\"\u003e\n    \u003cimg alt=\"GitHub Workflow Status\" src=\"https://github.com/dext7r/pushNotifications/actions/workflows/push-notifications.yml/badge.svg\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/node-%3E%3D12-blue.svg\" /\u003e\n  \u003ca href=\"https://github.com/dext7r/pushNotifications#readme\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/dext7r/pushNotifications/graphs/commit-activity\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Maintenance\" src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/dext7r/pushNotifications/blob/master/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# pushNotifications\n\npushNotifications 是基于[push-all-in-one](https://github.com/CaoMeiYouRen/push-all-in-one) 封装的github action版本。也可使用 [@dext7r/push-notifications](https://www.npmjs.com/@dext7r/push-notifications),在node环境下使用\n\n## action\n\n### 新建一个workflow文件\n  ```yaml .github/workflows/push-notifications.yml\n  name: Push Notifications\n\non:\n  push:\n    branches:\n      - main\n\njobs:\n  push-notifications:\n    runs-on: ubuntu-latest\n\n    steps:\n    - name: Checkout code\n      uses: actions/checkout@v2\n\n    - name: Run Push Notifications action\n      uses: dext7r/pushNotifications\n      with:\n        TYPE: ${{ secrets.TYPE }}\n        TITLE: ${{ secrets.TITLE }}\n        DESP: ${{ secrets.DESP }}\n        SCTKEY: ${{ secrets.SCTKEY }}\n        ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}\n        SECRET: ${{ secrets.SECRET }}\n        WX_ROBOT_KEY: ${{ secrets.WX_ROBOT_KEY }}\n        MSG_TYPE: ${{ secrets.MSG_TYPE }}\n        EMAIL_TYPE: ${{ secrets.EMAIL_TYPE }}\n        EMAIL_TO_ADDRESS: ${{ secrets.EMAIL_TO_ADDRESS }}\n        EMAIL_AUTH_USER: ${{ secrets.EMAIL_AUTH_USER }}\n        EMAIL_AUTH_PASS: ${{ secrets.EMAIL_AUTH_PASS }}\n        EMAIL_HOST: ${{ secrets.EMAIL_HOST }}\n        EMAIL_PORT: ${{ secrets.EMAIL_PORT }}\n        WX_APP_CORPID: ${{ secrets.WX_APP_CORPID }}\n        WX_APP_AGENTID: ${{ secrets.WX_APP_AGENTID }}\n        WX_APP_SECRET: ${{ secrets.WX_APP_SECRET }}\n        WX_APP_USERID: ${{ secrets.WX_APP_USERID }}\n        PUSH_PLUS_TOKEN: ${{ secrets.PUSH_PLUS_TOKEN }}\n        TEMPLATE_TYPE: ${{ secrets.TEMPLATE_TYPE }}\n        CHANNEL_TYPE: ${{ secrets.CHANNEL_TYPE }}\n        I_GOT_KEY: ${{ secrets.I_GOT_KEY }}\n        QMSG_KEY: ${{ secrets.QMSG_KEY }}\n        QMSG_QQ: ${{ secrets.QMSG_QQ }}\n        QMSG_PUSH_TYPE: ${{ secrets.QMSG_PUSH_TYPE }}\n        XI_ZHI_KEY: ${{ secrets.XI_ZHI_KEY }}\n        PUSH_DEER_PUSH_KEY: ${{ secrets.PUSH_DEER_PUSH_KEY }}\n        PUSH_DEER_ENDPOINT: ${{ secrets.PUSH_DEER_ENDPOINT }}\n        PUSH_DEER_PUSH_TYPE: ${{ secrets.PUSH_DEER_PUSH_TYPE }}\n        DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}\n        DISCORD_USERNAME: ${{ secrets.DISCORD_USERNAME }}\n        TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}\n        TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}\n        TELEGRAM_SEND_SILENTLY: ${{ secrets.TELEGRAM_SEND_SILENTLY }}\n        TELEGRAM_PROTECT_CONTENT: ${{ secrets.TELEGRAM_PROTECT_CONTENT }}\n        TELEGRAM_MESSAGE_THREAD_ID: ${{ secrets.TELEGRAM_MESSAGE_THREAD_ID }}\n        ONE_BOT_BASE_URL: ${{ secrets.ONE_BOT_BASE_URL }}\n        ONE_BOT_ACCESS_TOKEN: ${{ secrets.ONE_BOT_ACCESS_TOKEN }}\n        ONE_BOT_MSG_TYPE: ${{ secrets.ONE_BOT_MSG_TYPE }}\n        ONE_BOT_RECIEVER_ID: ${{ secrets.ONE_BOT_RECIEVER_ID }}\n  ```\n\n## 参数\n\n| 变量名                  | 描述                                       | 可选值          | 默认值  | 必填  |\n|-----------------------|------------------------------------------|---------------|--------|--------|\n| TYPE                  | 通知类型                                    | ServerChanTurbo, Dingtalk, CustomEmail, WechatRobot, WechatApp, PushPlus, IGot, Qmsg, XiZhi, PushDeer, Discord, Telegram, OneBot      | 无      | 是  |\n| TITLE                 | 通知标题                                    | 任意字符串       | 无      | 是  |\n| DESP                  | 通知内容                                    | 任意字符串       | 无      | 是  |\n| SCTKEY                | Server酱的SCKEY                            | 字符串          | 无      | 否 |\n| ACCESS_TOKEN          | 推送服务的ACCESS_TOKEN                     | 字符串          | 无      | 否 |\n| SECRET                | 推送服务的SECRET                           | 字符串          | 无      | 否 |\n| WX_ROBOT_KEY          | 微信机器人的KEY                             | 字符串          | 无      | 否 |\n| MSG_TYPE              | 微信机器人的消息类型                         | 所有消息类型      | 无      | 否 |\n| EMAIL_TYPE            | 邮件通知类型                                | 所有邮件类型      | 无      | 否 |\n| EMAIL_TO_ADDRESS      | 邮件接收地址                                | 有效邮箱地址      | 无      | 否 |\n| EMAIL_AUTH_USER       | 邮件发送者邮箱                               | 有效邮箱地址      | 无      | 否 |\n| EMAIL_AUTH_PASS       | 邮件发送者授权密码                           | 字符串          | 无      | 否 |\n| EMAIL_HOST            | 邮件发送者邮箱服务器                          | 有效域名         | 无      | 否 |\n| EMAIL_PORT            | 邮件发送者邮箱端口                            | 数字           | 无      | 否 |\n| WX_APP_CORPID         | 企业微信的CORPID                            | 字符串          | 无      | 否 |\n| WX_APP_AGENTID        | 企业微信的AGENTID                           | 数字           | 无      | 否 |\n| WX_APP_SECRET         | 企业微信的SECRET                            | 字符串          | 无      | 否 |\n| WX_APP_USERID         | 企业微信的USERID                            | 字符串          | 无      | 否 |\n| PUSH_PLUS_TOKEN       | PUSH_PLUS的TOKEN                            | 字符串          | 无      | 否 |\n| TEMPLATE_TYPE         | 钉钉机器人的模板类型                          | 所有模板类型      | 无      | 否 |\n| CHANNEL_TYPE          | 钉钉机器人的通道类型                          | 所有通道类型      | 无      | 否 |\n| I_GOT_KEY             | iGot的KEY                                  | 字符串          | 无      | 否 |\n| QMSG_KEY              | Qmsg的KEY                                  | 字符串          | 无      | 否 |\n| QMSG_QQ               | Qmsg的QQ                                   | 字符串          | 无      | 否 |\n| QMSG_PUSH_TYPE        | Qmsg的推送类型                               | 所有推送类型      | 无      | 否 |\n| XI_ZHI_KEY            | 喜知的KEY                                  | 字符串          | 无      | 否 |\n| PUSH_DEER_PUSH_KEY    | PushDeer的PUSH_KEY                         | 字符串          | 无      | 否 |\n| PUSH_DEER_ENDPOINT    | PushDeer的ENDPOINT                         | 字符串          | 无      | 否 |\n| PUSH_DEER_PUSH_TYPE   | PushDeer的推送类型                           | 所有推送类型      | 无      | 否 |\n| DISCORD_WEBHOOK       | Discord的WEBHOOK                           | 字符串          | 无      | 否 |\n| DISCORD_USERNAME      | Discord的用户名                             | 字符串          | 无      | 否 |\n| TELEGRAM_BOT_TOKEN    | Telegram的BOT_TOKEN                        | 字符串          | 无      | 否 |\n| TELEGRAM_CHAT_ID      | Telegram的CHAT_ID                          | 数字           | 无      | 否 |\n| TELEGRAM_SEND_SILENTLY| Telegram的是否静默发送                        | true或false     | false  | 否 |\n| TELEGRAM_PROTECT_CONTENT| Telegram的是否保护内容                      | true或false     | false  | 否 |\n| TELEGRAM_MESSAGE_THREAD_ID| Telegram的消息线程ID                      | 字符串          | 无      | 否 |\n| ONE_BOT_BASE_URL      | OneBot的BASE_URL                          | 字符串          | 无      | 否 |\n| ONE_BOT_ACCESS_TOKEN  | OneBot的ACCESS_TOKEN                      | 字符串          | 无      | 否 |\n| ONE_BOT_MSG_TYPE      | OneBot的消息类型                          | 所有消息类型      | 无      | 否 |\n| ONE_BOT_RECIEVER_ID   | OneBot的接收者ID                          | 数字           | 无      | 否 |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdext7r%2Fpushnotifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdext7r%2Fpushnotifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdext7r%2Fpushnotifications/lists"}