From 9b470bbbb206cb3c98de32833d1879a7c5e436ca Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 26 Jan 2023 17:42:41 +0100 Subject: [PATCH] feat: Allow writing changes in the github action --- action.yml | 5 +++++ docker/entrypoint.sh | 5 +++++ 2 files changed, 10 insertions(+) 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}"