chore: format

This commit is contained in:
galargh 2023-08-12 23:57:09 +02:00
parent 89a192af9d
commit 48ac8fd236
2 changed files with 10 additions and 7 deletions

View file

@ -114,7 +114,7 @@ jobs:
shell: bash
hostedtoolcache:
name: 'Validate if hostedtoolcache works as expected'
name: 'Validate if hostedtoolcache works as expected'
runs-on: windows-latest
strategy:
matrix:
@ -128,12 +128,9 @@ jobs:
with:
go-version: ${{ matrix.go }}
cache: ${{ matrix.cache }}
- name: 'Setup ${{ matrix.go }}, cache: ${{ matrix.cache }} (from hostedtoolcache)'
uses: ./
with:
go-version: ${{ matrix.go }}
cache: ${{ matrix.cache }}

View file

@ -205,8 +205,14 @@ async function cacheWindowsDir(
const actualToolCacheCompleteFile = `${actualToolCacheDir}.complete`;
const defaultToolCacheCompleteFile = `${defaultToolCacheDir}.complete`;
fs.symlinkSync(actualToolCacheCompleteFile, defaultToolCacheCompleteFile, 'file');
core.info(`Created link ${defaultToolCacheCompleteFile} => ${actualToolCacheCompleteFile}`);
fs.symlinkSync(
actualToolCacheCompleteFile,
defaultToolCacheCompleteFile,
'file'
);
core.info(
`Created link ${defaultToolCacheCompleteFile} => ${actualToolCacheCompleteFile}`
);
// make outer code to continue using toolcache as if it were installed on c:
// restore toolcache root to default drive c: