From 812c7426561de069f9364af329f73b59d09bc79b Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 17 Aug 2023 12:13:26 -0400 Subject: [PATCH] Potential fix --- .github/workflows/artifact-tests.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifact-tests.yml b/.github/workflows/artifact-tests.yml index 64e89646..3f5a11a9 100644 --- a/.github/workflows/artifact-tests.yml +++ b/.github/workflows/artifact-tests.yml @@ -62,6 +62,13 @@ jobs: - uses: actions/github-script@v6 with: script: | - const script = require('./packages/artifact/lib/artifact') - const uploadResult = await script.create().uploadArtifact('my-artifact-${{ matrix.runs-on }}',['artifact-path/first.txt','artifact-path/second.txt'], ${{ github.workspace }}) + const artifact = require('./packages/artifact/lib/artifact') + + const artifactName = 'my-artifact-${{ matrix.runs-on }}' + console.log('artifactName: ' + artifactName) + + const fileContents = ['artifact-path/first.txt','artifact-path/second.txt'] + + const uploadResult = await artifact.create().uploadArtifact(artifactName, fileContents, '${{ github.workspace }}') + console.log(uploadResult)