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