{"repo":"typesafegithub/github-actions-typing","free":true,"listed":false,"github":"https://github.com/typesafegithub/github-actions-typing","clone":"git clone https://github.com/typesafegithub/github-actions-typing.git","description":"Bring type-safety to your GitHub actions' API!","language":"Kotlin","stars":69,"topics":["github-actions","kotlin","type-safety","validation"],"license":"Apache-2.0","category":"workflow-automation","readme_excerpt":"GitHub Actions typing Bring type-safety to your GitHub actions' API! This is a GitHub action that validates your action's type specs ( action-types.y(a)ml ) and ensures the inputs and outputs have types set according to a certain specification. It aims to be a standardized way to present your actions' API, both to human users and any kind of automation (e. g. generating action bindings for this Kotlin DSL). Similar to typings for TypeScript or type hints for Python. Typings for all inputs and outputs have to be specified. It supports YAML anchors and aliases to reduce duplication. To see which actions already provide typings using this schema, click here. Example Let's say your action has such manifest ( action.yml ): and such action-types.yml next to it: This action, once used within a workflow, will fail the workflow run and produce such output: Usage Create a new file in your action repo's root directory: action-types.yml , then specify types for your action's inputs and outputs. See \"Available types\" section below. Finally, create a workflow in your actions' repository that will simply call this action to validate the types: Available types String A text value. Example: Boolean Can be true or false . Example: Integer A number without a fractional component. Example: In case of \"magic values\" meaning something else that the user would expect, you can specify them like so: You can also optionally define name which is a hint for code generators what name can be used as class","default_branch":null,"files":null,"tree":[],"storefront":"/r/typesafegithub","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/typesafegithub/github-actions-typing/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}