NewAmazingPVP / AutoUpdatePlugins

Automatically update any spigot/bungeecord/velocity plugin you wish!
MIT License
11 stars 1 forks source link

Is it possible to add support for download GitHub build artifacts from actions #12

Closed Josh65-2201 closed 4 months ago

Josh65-2201 commented 4 months ago

I want to have grim (https://github.com/GrimAnticheat/Grim) auto update since it get many updates a day but they do there release via the GitHub actions artifact rather then release page. Is it possible to add support for them?

NewAmazingPVP commented 4 months ago

Sorry for not replying @Josh65-2201. I have added the feature of downloading github build artifacts from actions, so please try this build out. For example, you can try this link: https://github.com/Elytrium/LimboAPI/dev to download that plugin's actions (just add /dev at the end to be able to differentiate between releases and actions). About GrimAC Anticheat, they do not allow you to download their actions without a github personal token, so I am afraid that I don't know how to deal with that situation. https://api.github.com/repos/GrimAnticheat/Grim/actions/artifacts https://api.github.com/repos/GrimAnticheat/Grim/actions/artifacts/1661144786/zip image

Josh65-2201 commented 4 months ago

It's alright, thanks for adding it. As for the token, would it not be possible for the user to provide one and add it to the config for the plugin to use?

Josh65-2201 commented 4 months ago

I have found that they release updates less often then I thought and are also uploaded to hanger, so the issue for me is solved. Thanks for the work helping me.

NewAmazingPVP commented 4 months ago

Great to hear!

NewAmazingPVP commented 4 months ago

@Josh65-2201 By the way, I am aware that for GrimAC, you found that they upload frequently on Hangar, but for other plugins with github actions, I have finally added a feature where you can put in your github personal access token in the config and it will let you download builds from actions. Here is the build Make sure to regenerate the configuration if you need to test it out or so. Here is how you can get your personal access token. And you only need to give it public_repo permissions to make it work. image

Josh65-2201 commented 4 months ago

Great, thanks for making it.