Skip to content

Commit 28b40cb

Browse files
feat(actions): update actions/upload-artifact@v4 (#1251)
Created automatically. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 168adb6 commit 28b40cb

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1eb3cb2b3e0f29609092a73eb033bb759a334595
1+
26f96dfa697d77e81fd5907df203aa23a56210a8

github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/actions/UploadArtifactV4.kt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ package io.github.typesafegithub.workflows.actions.actions
1111
import io.github.typesafegithub.workflows.domain.actions.Action
1212
import io.github.typesafegithub.workflows.domain.actions.RegularAction
1313
import java.util.LinkedHashMap
14+
import kotlin.Boolean
1415
import kotlin.Int
1516
import kotlin.String
1617
import kotlin.Suppress
@@ -42,6 +43,9 @@ import kotlin.collections.toTypedArray
4243
* as GNU Gzip) - 9: Best compression Higher levels will result in better compression, but will take
4344
* longer to complete. For large files that are not easily compressed, a value of 0 is recommended for
4445
* significantly faster uploads.
46+
* @param overwrite If true, an artifact with a matching name will be deleted before a new one is
47+
* uploaded. If false, the action will fail if an artifact for the given name already exists. Does not
48+
* fail if the artifact does not exist.
4549
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
4650
* the binding
4751
* @param _customVersion Allows overriding action's version, for example to use a specific minor
@@ -77,6 +81,12 @@ public data class UploadArtifactV4 private constructor(
7781
* significantly faster uploads.
7882
*/
7983
public val compressionLevel: UploadArtifactV4.CompressionLevel? = null,
84+
/**
85+
* If true, an artifact with a matching name will be deleted before a new one is uploaded. If
86+
* false, the action will fail if an artifact for the given name already exists. Does not fail if
87+
* the artifact does not exist.
88+
*/
89+
public val overwrite: Boolean? = null,
8090
/**
8191
* Type-unsafe map where you can put any inputs that are not yet supported by the binding
8292
*/
@@ -94,10 +104,11 @@ public data class UploadArtifactV4 private constructor(
94104
ifNoFilesFound: UploadArtifactV4.BehaviorIfNoFilesFound? = null,
95105
retentionDays: UploadArtifactV4.RetentionPeriod? = null,
96106
compressionLevel: UploadArtifactV4.CompressionLevel? = null,
107+
overwrite: Boolean? = null,
97108
_customInputs: Map<String, String> = mapOf(),
98109
_customVersion: String? = null,
99110
) : this(name=name, path=path, ifNoFilesFound=ifNoFilesFound, retentionDays=retentionDays,
100-
compressionLevel=compressionLevel, _customInputs=_customInputs,
111+
compressionLevel=compressionLevel, overwrite=overwrite, _customInputs=_customInputs,
101112
_customVersion=_customVersion)
102113

103114
@Suppress("SpreadOperator")
@@ -108,6 +119,7 @@ public data class UploadArtifactV4 private constructor(
108119
ifNoFilesFound?.let { "if-no-files-found" to it.stringValue },
109120
retentionDays?.let { "retention-days" to it.integerValue.toString() },
110121
compressionLevel?.let { "compression-level" to it.integerValue.toString() },
122+
overwrite?.let { "overwrite" to it.toString() },
111123
*_customInputs.toList().toTypedArray(),
112124
).toTypedArray()
113125
)

0 commit comments

Comments
 (0)