GithubHelp home page GithubHelp logo

a690700752 / subconverter-actions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from forgo7ten/subconverter-actions

0.0 0.0 0.0 13 KB

通过subconverter,利用actions实现自动订阅转换上传至Gists

Python 100.00%

subconverter-actions's Introduction

subconverter-actions

利用GithubActions将自己的订阅通过subconverter转换工具转换,并上传至特定的gist。

这里采用的是asdlokj1qpi23/subconverter的fork版本,其支持Hysteria2协议。

使用步骤

  1. Fork 本仓库

  2. 在你自己 Fork 的仓库进行设置Settings - Actions - General - Allow all actions and reusable workflows,别忘了save

  3. 然后Settings - Secrets - Actions - New repository secret,按下面例子新建几个secrets

    secrets Name Value
    PERSONAL_TOKEN Github Personal Access Token(在此创建
    GIST_ID 要更新的Gist ID(注意Secret
    CONVERT_PARAM 配置参数
    1. PERSONAL_TOKEN:个人访问令牌,没啥好说的。

    2. GIST_ID需要自己新建一个gist,填入id。https://gist.github.com/{UserName}/{GistId}

    3. CONVERT_PARAM:这个比较复杂,是下述json格式的base64编码。key是上传至gist的文件名,value值是通过在线订阅转换前端生成的后端参数。

    ```json
    {"sub1.yml": "?target=clash&insert=false&exclude=%E5%A5%97%E9%A4%90%E5%88%B0%E6%9C%9F%7C%E8%8A%82%E7%82%B9%E8%B6%85%E6%97%B6%7C%E6%9B%B4%E6%8D%A2%7C%E5%89%A9%E4%BD%99%E6%B5%81%E9%87%8F%7C%E5%88%B0%E6%9C%9F%E6%97%B6%E9%97%B4%7CTG%E7%BE%A4%7C%E5%AE%98%E7%BD%91&interval=259200&emoji=true&list=true&xudp=false&udp=true&tfo=false&expand=true&scv=true&fdn=false&new_name=true&url=SUBURL", "sub2.yml": "?target=clash&insert=false&exclude=%E5%A5%97%E9%A4%90%E5%88%B0%E6%9C%9F%7C%E8%8A%82%E7%82%B9%E8%B6%85%E6%97%B6%7C%E6%9B%B4%E6%8D%A2%7C%E5%89%A9%E4%BD%99%E6%B5%81%E9%87%8F%7C%E5%88%B0%E6%9C%9F%E6%97%B6%E9%97%B4%7CTG%E7%BE%A4%7C%E5%AE%98%E7%BD%91&interval=259200&emoji=true&list=true&xudp=false&udp=true&tfo=false&expand=true&scv=true&fdn=false&new_name=true&url=SUBURL"}
    ```
    
    在线转换生成的订阅链接,sub之后的参数即为value(**包含?号**),也可以尝试使用`update.py`中的`test_param()`来生成。
    

如果Actions没自动运行,自己随便改点啥push一下触发。

在线订阅转换前端有:

不介意隐私可以直接用上述在线订阅转换的后端。

如果切换subconverter版本为官方版(目前还不支持Hysteria2 until 20240116),需要更改UpdateGist.yml中的docker,或注释掉docker用下载的subconverter文件,注意架构。

其他

推荐个便宜大碗的t,包年15r、或不限时1TB25r,还日常打8折,用Hysteria2协议速度杠杠的。

subconverter-actions's People

Contributors

a690700752 avatar forgo7ten avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.