Skip to content

Let Github Actions help you download things and zip it to the release assets

License

Notifications You must be signed in to change notification settings

ButterAndButterfly/Help-me-download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Help-me-download 
made by ButterAndButterfly
Butter, symbolizes Otaku; Butterfly, symbolizes the Great things.
Let's earn a world full of fantasy!

ReadMe ReadMe中文版

Fucntion

Let the github robots download the things you want, and then push it to the release assets.

How to config

{
    // default headers to download
    "headers":{
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0",
        "Accept": "*/*",
        "Accept-Language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2",
        "Accept-Encoding": "gzip"
    },
    // release config, it must be diffrent from the former tasks
    "release_tag": "v1.0.0",
    "release_name": "v1.0.0",
    // the name of release assets
    "output": "test.zip",
    // tasks must be a array, even with a single task
    "tasks":[
        {
            "file_name": "test-40.jpg",
            "file_url":"https://avatars.githubusercontent.com/u/52323235?s=60&v=4",
            // optional; if headers appear, the default headers will be uneffective;
            "headers":{
                "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0",
                "Accept": "*/*",
                "Accept-Language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2",
                "Accept-Encoding": "gzip, br"
            },
        },{
            "file_name": "test-60.jpg",
            "file_url":"https://avatars.githubusercontent.com/u/52323235?s=60&v=4"
        }
    ]
}

How to use

  • Fork/clone the project, or use this project as Template to create one
  • Enable the Github Actions Settings
  • Now you have two way to run a download task:
    • By push a commit
      • edit the config.json
      • commit changes and push to the repo
    • By create an issue comment
      • The content of issue comment should be something like that in config.json
      • The act is to reply an issue, NOT create an issue
      • Just see issue#1

Notice

  • The github action bot works only for the owner of repo when issue comment created.
  • You could set the repo to private for privacy.

LICENSE

MIT

About

Let Github Actions help you download things and zip it to the release assets

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages