Skip to content

Commit b356a96

Browse files
authored
Fix listing spacectl releases on GHE (#37)
Closes #36
1 parent 6ce9f56 commit b356a96

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32594,7 +32594,9 @@ const tc = __importStar(__nccwpck_require__(3472));
3259432594
const github = __importStar(__nccwpck_require__(3228));
3259532595
const os_1 = __importDefault(__nccwpck_require__(857));
3259632596
const path_1 = __importDefault(__nccwpck_require__(6928));
32597-
const octokit = github.getOctokit(core.getInput("github-token"));
32597+
const octokit = github.getOctokit(core.getInput("github-token"), {
32598+
baseUrl: "https://api.github.com",
32599+
});
3259832600
const downloadURL = "https://github.com/spacelift-io/spacectl/releases/download";
3259932601
/**
3260032602
* Downloads the Spacectl binary from GitHub.

src/install.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import * as github from "@actions/github";
44
import os from "os";
55
import path from "path";
66

7-
const octokit = github.getOctokit(core.getInput("github-token"));
7+
const octokit = github.getOctokit(core.getInput("github-token"), {
8+
baseUrl: "https://api.github.com",
9+
});
810
const downloadURL = "https://github.com/spacelift-io/spacectl/releases/download";
911

1012
/**

0 commit comments

Comments
 (0)