diff --git a/.github/testworkflows/container-matrix.yml b/.github/testworkflows/container-matrix.yml index 97e02dd..de16ad7 100644 --- a/.github/testworkflows/container-matrix.yml +++ b/.github/testworkflows/container-matrix.yml @@ -6,6 +6,11 @@ jobs: matrix: test: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] runs-on: [self-hosted] - container: ubuntu:latest + container: node:latest steps: - - run: echo Hello World \ No newline at end of file + - uses: actions/github-script@v7 + with: + script: | + console.log('Hello from NodeJS Actions in a container!'); + github-token: none + - run: echo Hello World diff --git a/.github/testworkflows/matrix.yml b/.github/testworkflows/matrix.yml index 190df2b..7e76216 100644 --- a/.github/testworkflows/matrix.yml +++ b/.github/testworkflows/matrix.yml @@ -7,4 +7,9 @@ jobs: test: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] runs-on: [self-hosted] steps: + - uses: actions/github-script@v7 + with: + script: | + console.log('Hello from NodeJS Actions!'); + github-token: none - run: echo Hello World \ No newline at end of file diff --git a/actionsdotnetactcompat/action_cache.go b/actionsdotnetactcompat/action_cache.go index 75f8bac..735c233 100644 --- a/actionsdotnetactcompat/action_cache.go +++ b/actionsdotnetactcompat/action_cache.go @@ -35,7 +35,7 @@ func (cache *ActionCacheBase) GetTarArchive(ctx context.Context, cacheDir, sha, pr, pw := io.Pipe() cleanIncludePrefix := path.Clean(includePrefix) go func() { - defer func() { _ = pr.Close() }() + defer func() { _ = pw.Close() }() writer := tar.NewWriter(pw) defer func() { _ = writer.Close() }() reader, err := os.Open(cache.mapping[cacheDir+"@"+sha])