mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
feat: Allow writing changes in the github action
This commit is contained in:
parent
97770bdd02
commit
9b470bbbb2
2 changed files with 10 additions and 0 deletions
|
@ -20,6 +20,11 @@ inputs:
|
|||
required: false
|
||||
default: false
|
||||
|
||||
write_changes:
|
||||
description: "Write changes to the repository"
|
||||
required: false
|
||||
default: false
|
||||
|
||||
config:
|
||||
description: "Use a custom config file."
|
||||
required: false
|
||||
|
|
|
@ -43,6 +43,11 @@ if [ "${INPUT_ISOLATED:-false}" == "true" ]; then
|
|||
ARGS+=" --isolated"
|
||||
fi
|
||||
|
||||
# Write changes to the repository
|
||||
if [ "${INPUT_WRITE_CHANGES:-false}" == "true" ]; then
|
||||
ARGS+=" --write-changes"
|
||||
fi
|
||||
|
||||
# Use a custom configuration file
|
||||
if [[ -n "${INPUT_CONFIG:-}" ]]; then
|
||||
ARGS+=" --config ${INPUT_CONFIG}"
|
||||
|
|
Loading…
Reference in a new issue