dsaltares / fetch-gh-release-asset

Github Action to download an asset from a Github release
MIT License
113 stars 70 forks source link

Add support for GitHub enterprise #37

Closed lcmgh closed 2 years ago

lcmgh commented 2 years ago

There is no option to use the current GitHub server as always github.com is being used.

dsaltares commented 2 years ago

Thanks for the issue @lcmgh, would love to see a PR for this, it sounds like a great addition. I had no idea Github Enterprise folks would be interested in this action.

dsaltares commented 2 years ago

Looks like octokit lets you pass a baseUrl to hit your GH enterprise instance: https://github.com/octokit/octokit.js/#constructor-options.

Will take a look.

dsaltares commented 2 years ago

@lcmgh https://github.com/dsaltares/fetch-gh-release-asset/pull/46 should solve it.