diff --git a/entrypoint.sh b/entrypoint.sh index 722a0f0..0dedbd4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -24,7 +24,10 @@ function subcommandTerraform { echo "$VERSION" > "$TFENV_VERSION_FILE" fi done - git add . + if [ -f ".terraform-version" ]; then + echo "$VERSION" > ".terraform-version" + fi + git add . fi git commit -m "$UPDATE_MESSAGE"