Improve typings (#938)

This PR adds a missing enum value, and makes strings that are actually
delimited lists those lists, so that you for example in the generated
Kotlin bindings can simply do
```kotlin
additionalArguments = listOf(
    "--info",
    "--stacktrace",
    "--show-version"
)
```
instead of needing to do
```kotlin
additionalArguments = listOf(
    "--info",
    "--stacktrace",
    "--show-version"
).joinToString(" ")
```
or writing it all in one line as one string.

This is also how the typings for older versions are in the typing
catalog.

Theoretically, this is a breaking changes as the typings define the API
surface of the action and from the typings bindings are generated. I'll
leave it up to you how you handle it regarding version increase or when
to merge.
This commit is contained in:
Björn Kautler
2026-06-10 08:54:56 -06:00
committed by GitHub
parent 7ae0d0208c
commit a740661292
3 changed files with 19 additions and 6 deletions
+7 -1
View File
@@ -8,9 +8,15 @@ inputs:
type: string type: string
dependency-resolution-task: dependency-resolution-task:
type: list
separator: ' '
list-item:
type: string type: string
additional-arguments: additional-arguments:
type: list
separator: ' '
list-item:
type: string type: string
# Cache configuration # Cache configuration
@@ -115,7 +121,7 @@ inputs:
build-scan-terms-of-use-agree: build-scan-terms-of-use-agree:
type: enum type: enum
allowed-values: allowed-values:
- 'yes' - yes
develocity-access-key: develocity-access-key:
type: string type: string
+5 -1
View File
@@ -69,6 +69,7 @@ inputs:
- disabled - disabled
- generate - generate
- generate-and-submit - generate-and-submit
- generate-submit-and-upload
- generate-and-upload - generate-and-upload
- download-and-submit - download-and-submit
@@ -106,7 +107,7 @@ inputs:
build-scan-terms-of-use-agree: build-scan-terms-of-use-agree:
type: enum type: enum
allowed-values: allowed-values:
- 'yes' - yes
develocity-access-key: develocity-access-key:
type: string type: string
@@ -153,6 +154,9 @@ inputs:
# Deprecated action inputs # Deprecated action inputs
arguments: arguments:
type: list
separator: ' '
list-item:
type: string type: string
# Experimental action inputs # Experimental action inputs
+3
View File
@@ -14,4 +14,7 @@ inputs:
outputs: outputs:
failed-wrapper: failed-wrapper:
type: list
separator: '|'
list-item:
type: string type: string