Skip to content

setup-inputs

Actions
Setup inputs for a GitHub Action
v1.1.0
Latest
Star (0)

setup-inputs

This action parses inputs regardless of which event triggered the workflow.

It is currently useful for workflows that both use dispatch methods, repository_dispatch and workflow_dispatch. In the future, we might add support for more events and input validation.

Quickstart

- uses: simenandre/setup-inputs@v1
  id: inputs

With that you can access the inputs for both repository and workflow dispatch as such:

- runs: ${{ steps.inputs.outputs.a-string }}

Or the whole JSON object, as such:

- runs: ${{ steps.inputs.outputs.payload }}

Example

See the testing.yml for a full example.

setup-inputs is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Setup inputs for a GitHub Action
v1.1.0
Latest

setup-inputs is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.