Support filtering what tools are updated
Closed this issue · 0 comments
ericcornelissen commented
Summary
Add new options that allows users to list the tools that can be updated. This could be used to update a specific tool, use a matrix of tools to update, create update groups (e.g. update tooling related to X), or exclude certain tools that shouldn't be updated for whatever reason.
Suggestion
Add two new options:
only
which lists tools that can be considered for updates - all other tools won't be updatednot
which lists tools that cannot be considered for updates - all other tools may be updated
Interaction with other options
max
: can be combined with bothonly
andnot
just fine, even if some combinations of values don't make sense (e.g.only: actionlint
withmax: 2
).only
andnot
should be mutually exclusive.
Examples
Only update one tool:
- uses: ericcornelissen/tool-versions-update-action@v0.1.0
with:
only: actionlint
Only update tooling related to shell scripts:
- uses: ericcornelissen/tool-versions-update-action@v0.1.0
with:
only: shellcheck, shfmt
Don't update a particular tool:
- uses: ericcornelissen/tool-versions-update-action@v0.1.0
with:
not: yamllint