zero205 / JD_tencent_scf

自用脚本,随缘更新
GNU General Public License v3.0
644 stars 254 forks source link

deploy失败提示: 您未提供Bark的APP推送BARK_PUSH,取消Bark推送消息通知🚫 #321

Closed javakam closed 2 years ago

javakam commented 2 years ago

2022年1月13日

Run sls deploy && echo 'Deploy Success' || (echo 'Deploy Failed'; echo 'require("./sendNotify").sendNotify("云函数部署异常!请重试","点击通知,登入后查看详情",{ url: process.env.GITHUB_SERVER_URL + "/" + process.env.GITHUB_REPOSITORY + "/actions/runs/" + process.env.GITHUB_RUN_ID + "?check_suite_focus=true" })' > notify.js; node notify.js; exit 1)
  sls deploy && echo 'Deploy Success' || (echo 'Deploy Failed'; echo 'require("./sendNotify").sendNotify("云函数部署异常!请重试","点击通知,登入后查看详情",{ url: process.env.GITHUB_SERVER_URL + "/" + process.env.GITHUB_REPOSITORY + "/actions/runs/" + process.env.GITHUB_RUN_ID + "?check_suite_focus=true" })' > notify.js; node notify.js; exit 1)
  shell: /usr/bin/bash -e {0}
0s › Serverless › 正在初始化 .
aNA
0s › Serverless › 正在初始化 .

...

19s › *** › 部署中 ...
aNA
19s › *** › 函数状态异常, 未找到函数执行入口文件,请确认代码包入口文件名和 handler 设置是否对应或代码压缩包是否正常。 

  帮助文档: https://www.serverless.com/cn/framework/docs/ 
  BUG提交: https://github.com/serverless/serverless-tencent/issues 
  问答社区: https://github.com/serverless/serverless-tencent/discussions 

25hDeploy Failed
push+发送一对一通知消息失败:请勿频繁推送相同内容

您未提供Bark的APP推送BARK_PUSH,取消Bark推送消息通知🚫
Ca11back commented 2 years ago

请阅读自己私库下方readme的FAQ,非常感谢

javakam commented 2 years ago

Actions secrets 中把 TENCENT_FUNCTION_NAME 改名为 TENCENT_NAME 就好了...

Ca11back commented 2 years ago

Actions secrets 中把 TENCENT_FUNCTION_NAME 改名为 TENCENT_NAME 就好了...

那样不是函数名字会变成默认的么?TENCENT_NAME有生效吗?

javakam commented 2 years ago

Actions secrets 中把 TENCENT_FUNCTION_NAME 改名为 TENCENT_NAME 就好了...

那样不是函数名字会变成默认的么?TENCENT_NAME有生效吗?

函数名确实变了, 之前是jd 现在是 scf-jdscript .

Ca11back commented 2 years ago

Actions secrets 中把 TENCENT_FUNCTION_NAME 改名为 TENCENT_NAME 就好了...

那样不是函数名字会变成默认的么?TENCENT_NAME有生效吗?

函数名确实变了, 之前是jd 现在是 scf-jdscript .

建议按faq解决,看着感觉不算太正确