Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for downloading from GitHub Actions #299

Open
theRookieCoder opened this issue Apr 6, 2023 Discussed in #46 · 0 comments
Open

Support for downloading from GitHub Actions #299

theRookieCoder opened this issue Apr 6, 2023 Discussed in #46 · 0 comments
Labels
enhancement Improvements to the project new source A new platform to download mods from

Comments

@theRookieCoder
Copy link
Collaborator

Discussed in #46

Originally posted by JustSimplyKyle May 5, 2022

Warning this is going to be cursed

gh run download -R 'https://github.com/Fabricators-of-Create/Create' $(gh run list -R 'https://github.com/Fabricators-of-Create/Create' -b mc1.18/fabric/dev -w build -L 1 --json databaseId --jq '.[0].databaseId')
using this command, you can download Create's action articifact.
The requirement for other similar are

  1. github link https://github.com/Fabricators-of-Create/Create
  2. branch name mc1.18/fabric/dev
  3. workflow name build
    And this should work!
    (But create has two files in Artificats, one source, and another one normal. This would also require Implement filtering for GitHub releases. #29
    to be implemented. Or else it would probably use the wrong file)
    Although the use of gh is not that good here. It should technically be possible to do this via pure curl, but I'm not that good at it.
    And for upgrading action files, I got an idea.
    Save the current commit hash(not the actual file hash, but the github commit hash)
    And if the current commit hash doesn't equal to upstream's commit hash, update.
    I put this feature in discussions because it's such a strange feature and strange solution that I don't think belong in issues
@theRookieCoder theRookieCoder added enhancement Improvements to the project new source A new platform to download mods from labels Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements to the project new source A new platform to download mods from
Development

No branches or pull requests

1 participant