mirror of
https://github.com/extractions/setup-just
synced 2026-09-07 20:04:00 +00:00
Accept GITHUB_TOKEN environment variable
This commit is contained in:
@@ -29,6 +29,8 @@ jobs:
|
||||
uses: ./
|
||||
with:
|
||||
version: 0.5.10
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Check just version
|
||||
run: just --version | grep "^just v0.5.10$"
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+2
-1
@@ -14,7 +14,7 @@ class Release {
|
||||
}
|
||||
|
||||
async function getRelease(versionSpec?: string): Promise<Release | undefined> {
|
||||
const octokit = new Octokit();
|
||||
const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
|
||||
return octokit
|
||||
.paginate(
|
||||
octokit.repos.listReleases,
|
||||
@@ -53,6 +53,7 @@ async function checkOrInstallTool(
|
||||
// first check if we have previously donwloaded the tool
|
||||
const cache = tc.find(toolName, versionSpec || "*");
|
||||
if (cache) {
|
||||
core.info(`${toolName} matching version spec ${versionSpec} found in cache`);
|
||||
return cache;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user