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

feature: support GitHub Enterprise #62

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

zachwhaley
Copy link
Contributor

GitHub Actions sets the environment variable GITHUB_API_URL to the API URL of the instance of GitHub. For example, if running on github.com, then GITHUB_API_URL will be https://api.github.com; if running on ghe.my-company.com, then GITHUB_API_URL will be https://ghe.my-company.com/api/v3.

By setting the baseUrl of Octokit to the GITHUB_API_URL environment variable, any instance of GitHub Actions is supported, github.com or GitHub Enterprise.

GitHub Actions sets the environment variable GITHUB_API_URL to the API
URL of the instance of GitHub.  For example, if running on github.com,
then GITHUB_API_URL will be https://api.github.com; if running on
ghe.my-company.com, then GITHUB_API_URL will be https://ghe.my-company.com/api/v3.

By setting the baseUrl of Octokit to the GITHUB_API_URL environment
variable, any instance of GitHub Actions is supported, github.com or
GitHub Enterprise.
@chenrui333
Copy link
Collaborator

I actually dont use github enterprise, so gonna count on you for the support :)

@chenrui333 chenrui333 changed the title Support GitHub Enterprise feature: support GitHub Enterprise Jul 17, 2024
@chenrui333 chenrui333 merged commit 66cb6b2 into softprops:master Jul 17, 2024
2 checks passed
@chenrui333
Copy link
Collaborator

Thanks @zachwhaley for your help on this project.

@zachwhaley zachwhaley deleted the ghe-support branch July 17, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants