用ifttt来触发 - zhongfly/now-subconverter GitHub Wiki
ifttt设置:
if this then that
this:通过RSS订阅出现new item触发,RSS订阅链接
that:执行动作Webhook中的make a web request
method:POST
Content Type:application/json
URL:https://xxxxxx.xxxxxx.workers.dev/?https://api.github.com/repos/_user_/_repo_/actions/workflows/_workflow_file_name_/dispatches
其中https://xxxxxx.xxxxxx.workers.dev/
为部署的worker地址,_workflow_file_name_为xxx.yml(包含后缀)
请求体(body):
{
"token": "your github repo token",
"ref": "master",
"inputs": {
"message": "<<<{{EntryTitle}}>>>"
}
}
cloudflare worker
部署后,将ifttt发送的请求转发至url
地址,并且添加'Authorization'
请求头,去除ifttt发送的message中首尾的空格与回车。
使用的js脚本见wiki