mirror of
https://code.forgejo.org/actions/upload-artifact.git
synced 2024-11-14 01:26:17 +01:00
consume latest @actions/artifact
This commit is contained in:
parent
eeb333dcd2
commit
83b889d09d
2 changed files with 774 additions and 98 deletions
868
dist/index.js
vendored
868
dist/index.js
vendored
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,6 @@
|
||||||
import * as core from '../node_modules/@actions/core/'
|
import * as core from '../node_modules/@actions/core/'
|
||||||
import {
|
import {
|
||||||
UploadOptions,
|
UploadArtifactOptions,
|
||||||
create
|
create
|
||||||
} from '../node_modules/@actions/artifact/lib/artifact'
|
} from '../node_modules/@actions/artifact/lib/artifact'
|
||||||
import {findFilesToUpload} from './search'
|
import {findFilesToUpload} from './search'
|
||||||
|
@ -41,7 +41,7 @@ async function run(): Promise<void> {
|
||||||
core.debug(`Root artifact directory is ${searchResult.rootDirectory}`)
|
core.debug(`Root artifact directory is ${searchResult.rootDirectory}`)
|
||||||
|
|
||||||
const artifactClient = create()
|
const artifactClient = create()
|
||||||
const options: UploadOptions = {}
|
const options: UploadArtifactOptions = {}
|
||||||
if (inputs.retentionDays) {
|
if (inputs.retentionDays) {
|
||||||
options.retentionDays = inputs.retentionDays
|
options.retentionDays = inputs.retentionDays
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue