1
0
Fork 0

Potential fix

pull/1497/head
Konrad Pabjan 2023-08-17 12:13:26 -04:00
parent 65c1647e72
commit 812c742656
1 changed files with 9 additions and 2 deletions

View File

@ -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)