mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 21:29:07 +08:00
Potential fix
This commit is contained in:
parent
65c1647e72
commit
812c742656
11
.github/workflows/artifact-tests.yml
vendored
11
.github/workflows/artifact-tests.yml
vendored
@ -62,6 +62,13 @@ jobs:
|
|||||||
- uses: actions/github-script@v6
|
- uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const script = require('./packages/artifact/lib/artifact')
|
const artifact = 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 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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user