You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inputs and secrets objects are now typed looking at workflow_call event at on:. See the document for more details.
inputs object is typed with definitions at on.workflow_call.inputs. When the workflow is not callable, it is typed at {} (empty object) so any inputs.* access causes a type error.
secrets object is typed with definitions at on.workflow_call.secrets.
on:
workflow_call:
# `inputs` object is typed {url: string; lucky_number: number}inputs:
url:
description: 'your URL'type: stringlucky_number:
description: 'your lucky number'type: number# `secrets` object is typed {user: string; credential: string}secrets:
user:
description: 'your user name'credential:
description: 'your credential'jobs:
test:
runs-on: ubuntu-20.04steps:
- name: Send data# ERROR: uri is typo of urlrun: curl ${{ inputs.uri }} -d ${{ inputs.lucky_number }}env:
# ERROR: credentials is typo of credentialTOKEN: ${{ secrets.credentials }}