[CI][NITPICK] Remove input types invalid syntax (#9596)
## Introduction
Unless I'm mistaken neither the `inputs.type` or `inputs.type` syntax
exists for `composite actions`.
By default it seems like any `Composite action` inputs are considered as
`string`.
```yml
name: Nx Affected CI
inputs:
parallel:
required: false
types: [number]
default: 3
tag:
required: false
types: [string]
tasks:
required: true
types: [string]
```
## Suggestion
To avoid misunderstanding of our composite actions inputs signature I
would recommend removing any `type` props but also default any inputs as
`strings`
## Misc
- Please find related GitHub community discussion
https://github.com/orgs/community/discussions/65588
This commit is contained in:
@ -2,14 +2,11 @@ name: Nx Affected CI
|
|||||||
inputs:
|
inputs:
|
||||||
parallel:
|
parallel:
|
||||||
required: false
|
required: false
|
||||||
types: [number]
|
default: '3'
|
||||||
default: 3
|
|
||||||
tag:
|
tag:
|
||||||
required: false
|
required: false
|
||||||
types: [string]
|
|
||||||
tasks:
|
tasks:
|
||||||
required: true
|
required: true
|
||||||
types: [string]
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
|||||||
@ -3,10 +3,8 @@ inputs:
|
|||||||
key:
|
key:
|
||||||
required: true
|
required: true
|
||||||
description: Prefix to the cache key
|
description: Prefix to the cache key
|
||||||
type: string
|
|
||||||
additional-paths:
|
additional-paths:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
|
||||||
outputs:
|
outputs:
|
||||||
cache-primary-key:
|
cache-primary-key:
|
||||||
description: actions/cache/restore cache-primary-key outputs proxy
|
description: actions/cache/restore cache-primary-key outputs proxy
|
||||||
|
|||||||
@ -3,10 +3,8 @@ inputs:
|
|||||||
key:
|
key:
|
||||||
required: true
|
required: true
|
||||||
description: Primary key to the cache, should be retrieved from `cache-restore` composite action outputs.
|
description: Primary key to the cache, should be retrieved from `cache-restore` composite action outputs.
|
||||||
type: string
|
|
||||||
additional-paths:
|
additional-paths:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
|||||||
Reference in New Issue
Block a user