1
0
Fork 0
mirror of https://code.forgejo.org/actions/upload-artifact.git synced 2024-12-23 04:06:00 +01:00

Merge pull request #460 from actions/robherley/consume-latest-toolkit

Consume latest @actions/artifact
This commit is contained in:
Rob Herley 2023-12-04 15:47:37 -05:00 committed by GitHub
commit 500e175644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
}