File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import { create } from '@actions/artifact'
1+ import * as artifact 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
77export async function uploadArtifact ( artifactName : string , ...files : string [ ] ) {
88 startGroup ( 'Uploading artifact ' + artifactName )
9- await create ( ) . uploadArtifact ( artifactName , files , '.' )
9+ await artifact . create ( ) . uploadArtifact ( artifactName , files , '.' )
1010 endGroup ( )
1111}
1212
1313export async function downloadArtifact ( artifactName : string ) {
1414 startGroup ( 'Downloading artifact ' + artifactName )
15- await create ( ) . downloadArtifact ( artifactName , '.' , {
15+ await artifact . create ( ) . downloadArtifact ( artifactName , '.' , {
1616 createArtifactFolder : true ,
1717 } )
1818 endGroup ( )
You can’t perform that action at this time.
0 commit comments