File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1- import { create } from '@actions/artifact'
2- import { startGroup , endGroup , getInput } from '@actions/core'
1+ // import { create } from '@actions/artifact'
2+ import create from '@actions/artifact'
3+ import { endGroup , getInput , startGroup } from '@actions/core'
34import { context , getOctokit } from '@actions/github'
45import { retry } from '@octokit/plugin-retry'
56import { Md5 } from 'ts-md5'
67
78export async function uploadArtifact ( artifactName : string , ...files : string [ ] ) {
89 startGroup ( 'Uploading artifact ' + artifactName )
9- await create ( ) . uploadArtifact ( artifactName , files , '.' )
10+ await create . uploadArtifact ( artifactName , files , '.' )
1011 endGroup ( )
1112}
1213
1314export async function downloadArtifact ( artifactName : string ) {
1415 startGroup ( 'Downloading artifact ' + artifactName )
15- await create ( ) . downloadArtifact ( artifactName , '.' , {
16- createArtifactFolder : true ,
17- } )
16+ await create . getArtifact ( artifactName )
1817 endGroup ( )
1918}
2019
You can’t perform that action at this time.
0 commit comments