Skip to content

Commit df167fa

Browse files
authored
Update actions.ts
1 parent 302ad15 commit df167fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/actions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { create } from '@actions/artifact'
1+
import * as artifact from '@actions/artifact'
22
import { startGroup, endGroup, getInput } from '@actions/core'
33
import { context, getOctokit } from '@actions/github'
44
import { retry } from '@octokit/plugin-retry'
55
import { Md5 } from 'ts-md5'
66

77
export 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

1313
export 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()

0 commit comments

Comments
 (0)