allankp/Dynamic Workflow Choices
Add, update, or delete choices from workflow_dispatch inputs in your repository workflows
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| action | Action to perform: add, update, or delete | yes | — |
| input-name | Name of the workflow input to modify | yes | — |
| workflows | Comma-separated list of workflow files to update (e.g., "deploy.yml,release.yml") | yes | — |
| choice-value | The choice value to add, update, or delete | yes | — |
| new-choice-value | New value when using update action (replaces choice-value) | no | — |
| github-token | GitHub token with repo write permissions | yes | ${{ github.token }} |
| commit-message | Custom commit message for the update | no | chore: update workflow input choices |
| branch | Branch to commit changes to | no | ${{ github.ref_name }} |
Outputs
| name | description |
|---|---|
| updated-workflows | List of workflows that were updated |
| changes-made | Whether any changes were made |