File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- import * as artifact from '@actions/artifact'
1+ import { DefaultArtifactClient } from '@actions/artifact'
22import { startGroup , endGroup , getInput } from '@actions/core'
33import { context , getOctokit } from '@actions/github'
44import { retry } from '@octokit/plugin-retry'
55import { Md5 } from 'ts-md5'
66
7+ const artifact = new DefaultArtifactClient ( )
8+
79export async function uploadArtifact ( artifactName : string , ...files : string [ ] ) {
810 startGroup ( 'Uploading artifact ' + artifactName )
9- await artifact . create ( ) . uploadArtifact ( artifactName , files , '.' )
11+ await artifact . uploadArtifact ( artifactName , files , '.' )
1012 endGroup ( )
1113}
1214
1315export async function downloadArtifact ( artifactName : string ) {
1416 startGroup ( 'Downloading artifact ' + artifactName )
15- await artifact . create ( ) . downloadArtifact ( artifactName , '.' , {
17+ await artifact . downloadArtifact ( artifactName , '.' , {
1618 createArtifactFolder : true ,
1719 } )
1820 endGroup ( )
You can’t perform that action at this time.
0 commit comments