Define a helper to download to avoid duplication

This commit is contained in:
Benoit Daloze
2026-01-07 22:23:14 +01:00
parent 1010da45f3
commit d5f787ce33
4 changed files with 21 additions and 24 deletions
+5
View File
@@ -442,3 +442,8 @@ export function isExactCacheKeyMatch(key, cacheKey) {
}) === 0
);
}
export async function download(url) {
const auth = inputs.token ? `token ${inputs.token}` : undefined
return await tc.downloadTool(url, undefined, auth)
}