consume latest @actions/artifact

pull/460/head
Rob Herley 2023-12-04 15:40:37 -05:00
parent eeb333dcd2
commit 83b889d09d
No known key found for this signature in database
GPG Key ID: D1602042C3543B06
2 changed files with 774 additions and 98 deletions

868
dist/index.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
import * as core from '../node_modules/@actions/core/'
import {
UploadOptions,
UploadArtifactOptions,
create
} from '../node_modules/@actions/artifact/lib/artifact'
import {findFilesToUpload} from './search'
@ -41,7 +41,7 @@ async function run(): Promise<void> {
core.debug(`Root artifact directory is ${searchResult.rootDirectory}`)
const artifactClient = create()
const options: UploadOptions = {}
const options: UploadArtifactOptions = {}
if (inputs.retentionDays) {
options.retentionDays = inputs.retentionDays
}