yuque-hexo icon indicating copy to clipboard operation
yuque-hexo copied to clipboard

基于vercel的语雀severless云函数GitHub Actions触发

Open Zfour opened this issue 4 years ago • 3 comments

为了方便大家调用,我用 python 写了一个 api。 我直接将 api 设置成了传参型,供大家调用。 api 地址:https://yuque-vercel-webhook-api.vercel.app/api?。 当然,如果担心密钥泄露,你也可以fork 项目在 vercel 中自行搭建, 将 ‘https://yuque-vercel-webhook-api.vercel.app’ 更换为你的 app 应用链接。 你需要传递的参数有 token,user,source。

https://yuque-vercel-webhook-api.vercel.app/api?
token='{填写你的github私钥}'&
user='{填写你的github用户名}'&
source='{填写你的github仓库名}'

示例:
https://yuque-vercel-webhook-api.vercel.app/api?token='8888888888'&user='Zfour'&source='my-blog-source-file'
将这个URL路径作为触发链接,在语雀开发者选项中进行配置。

修改触发链接里的参数项,访问这个链接,如果出现‘This’s OK!’说明配置成功。 复制 URL 路径作为触发链接,在语雀中进行配置。 (请勿恶意使用)

Zfour avatar Jan 21 '21 17:01 Zfour

https://github.com/Zfour/yuque_vercel_webhook_api

Zfour avatar Jan 21 '21 17:01 Zfour

@Zfour @x-cold 问下,现在语雀的webhook还能自动调用吗?我这边设置好语雀的webhook后并没有自动调用链接,需要手动调用链接才能进行同步

xinc-it avatar Dec 21 '21 06:12 xinc-it

@Zfour @x-cold 问下,现在语雀的webhook还能自动调用吗?我这边设置好语雀的webhook后并没有自动调用链接,需要手动调用链接才能进行同步

可以调用,调用时机要在更新文档时勾选:本次有大的更新

x-cold avatar Feb 18 '22 03:02 x-cold