feat: Allow writing changes in the github action

This commit is contained in:
Benjamin Bouvier 2023-01-26 17:42:41 +01:00
parent 97770bdd02
commit 9b470bbbb2
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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}"