From a53d01ead5344d4adc9fa7988d5977c7020dcace Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Mon, 29 Jul 2024 17:15:28 +0200 Subject: [PATCH] ci(release): Fixing wrong condition for committing changes (#827) Signed-off-by: Vincent Boutour --- aws/logs_monitoring/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/logs_monitoring/release.sh b/aws/logs_monitoring/release.sh index 0ae1854e..22a9fb81 100755 --- a/aws/logs_monitoring/release.sh +++ b/aws/logs_monitoring/release.sh @@ -192,7 +192,7 @@ prod_release() { yq --inplace ".Mappings.Constants.DdForwarder.Version |= \"${FORWARDER_VERSION}\"" "template.yaml" yq --inplace ".Mappings.Constants.DdForwarder.LayerVersion |= \"${LAYER_VERSION}\"" "template.yaml" - if git diff --quiet; then + if ! git diff --quiet; then log_info "Committing version number change..." git add "settings.py" "template.yaml" git commit --signoff --message "ci(release): Update version from ${CURRENT_VERSION} to ${FORWARDER_VERSION}"