Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.
zhongfly edited this page Aug 16, 2020 · 6 revisions

Welcome to the now-subconverter wiki!

使用github action对最新commit进行编译,使用zeit.co进行自动部署,使用ifttt+cloudflare worker推送commit更新信息。

github action

workflow文件

其中设置通过workflow_dispatch触发action,输入变量message作为commit信息

cloudflare worker

部署后,将ifttt发送的请求转发至url地址,并且添加'Authorization'请求头,去除ifttt发送的message中首尾的空格与回车。

使用的js脚本见wiki

ifttt设置:

if this then that

this:通过RSS订阅出现new item触发,RSS订阅链接

that:执行动作Wwebhook中的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}}>>>"
     }
 }
Clone this wiki locally