feat: add GitHub Enterprise Server (GHES) support (#36)

This adds support for this action to be used in GitHub Enterprise
Server.

It sends request to the base url extracted from
[GITHUB_API_URL](https://docs.github.com/en/enterprise-server@3.10/actions/learn-github-actions/variables#default-environment-variables).

---------

Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
This commit is contained in:
7Hazard
2023-08-30 01:13:34 +02:00
committed by GitHub
parent 17cde8a7d8
commit ede6c15881
3 changed files with 23 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ export async function post(core, request) {
const token = core.getState("token");
if (!token) return;
await request("DELETE /installation/token", {
headers: {
authorization: `token ${token}`,