Create the .complete file so tc.find() can find it for future runs for self-hosted runners

This commit is contained in:
Benoit Daloze
2020-12-05 16:36:46 +01:00
parent 42fc2d3bce
commit 23b2b5e5f1
4 changed files with 31 additions and 4 deletions
+5
View File
@@ -99,6 +99,11 @@ export function getToolCacheRubyPrefix(platform, version) {
return path.join(toolCache, 'Ruby', version, 'x64')
}
export function createToolCacheCompleteFile(toolCacheRubyPrefix) {
const completeFile = `${toolCacheRubyPrefix}.complete`
fs.writeFileSync(completeFile, '')
}
// convert windows path like C:\Users\runneradmin to /c/Users/runneradmin
export function win2nix(path) {
if (/^[A-Z]:/i.test(path)) {