diff --git a/action.yml b/action.yml index 16dffeb7..a36d493e 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index a4c784de..0fddde75 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -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}"