Skip to content

Commit e2fb0da

Browse files
committed
Completely random fixes
1 parent ac616fd commit e2fb0da

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/actions.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
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'
34
import { context, getOctokit } from '@actions/github'
45
import { retry } from '@octokit/plugin-retry'
56
import { Md5 } from 'ts-md5'
67

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

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

0 commit comments

Comments
 (0)