[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:
|
||||
parallel:
|
||||
required: false
|
||||
types: [number]
|
||||
default: 3
|
||||
default: '3'
|
||||
tag:
|
||||
required: false
|
||||
types: [string]
|
||||
tasks:
|
||||
required: true
|
||||
types: [string]
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
|
||||
@ -3,10 +3,8 @@ inputs:
|
||||
key:
|
||||
required: true
|
||||
description: Prefix to the cache key
|
||||
type: string
|
||||
additional-paths:
|
||||
required: false
|
||||
type: string
|
||||
outputs:
|
||||
cache-primary-key:
|
||||
description: actions/cache/restore cache-primary-key outputs proxy
|
||||
|
||||
@ -3,10 +3,8 @@ inputs:
|
||||
key:
|
||||
required: true
|
||||
description: Primary key to the cache, should be retrieved from `cache-restore` composite action outputs.
|
||||
type: string
|
||||
additional-paths:
|
||||
required: false
|
||||
type: string
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
|
||||
Reference in New Issue
Block a user