feat: Allow writing changes in the github action

This commit is contained in:
Benjamin Bouvier
2023-02-08 15:00:48 +01:00
parent 97770bdd02
commit 9b470bbbb2
2 changed files with 10 additions and 0 deletions
+5
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
+5
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}"