Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🕶️ Parse GitHub Actions inputs from both `workflow_dispatch` and `repository_dispatch` events

License

Notifications You must be signed in to change notification settings

simenandre/setup-inputs

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

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.

About

🕶️ Parse GitHub Actions inputs from both `workflow_dispatch` and `repository_dispatch` events

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

AltStyle によって変換されたページ (->オリジナル) /