1
codehz 2022-03-10 12:11:53 +08:00 via Android
(跑 action 容易被判滥用,之前几个跑 openwrt 编译的就被橄榄了
|
3
kunkunzhang 2022-03-10 13:08:24 +08:00
挺好的。感觉需要手动触发
|
4
twfb OP @kunkunzhang 对 没法 push 触发, 写的定时, 之前有想法是, 私有库的 action 通过请求调用公开的然后执行, 应该可以节省私有库时间
|
5
xiaji 2022-03-12 11:44:39 +08:00
调用 github 接口,使用 curl post 触发,可定时
function main_handler () { curl \ -X POST \ -H "Accept: application/vnd.github.v3+json" \ -H "Authorization: token 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" \ https://api.github.com/repos/n0raml/rsschan/actions/workflows/main.yaml/dispatches \ -d '{"ref":"main"}' } #Authorization: token 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 替换 token 后面的 token 留着 #https://api.github.com/repos/用户名 /rsschan/actions/workflows/main.yaml/dispatches |