Skip to content

Commit a53d01e

Browse files
authored
ci(release): Fixing wrong condition for committing changes (#827)
Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
1 parent 7ab511a commit a53d01e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws/logs_monitoring/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ prod_release() {
192192
yq --inplace ".Mappings.Constants.DdForwarder.Version |= \"${FORWARDER_VERSION}\"" "template.yaml"
193193
yq --inplace ".Mappings.Constants.DdForwarder.LayerVersion |= \"${LAYER_VERSION}\"" "template.yaml"
194194

195-
if git diff --quiet; then
195+
if ! git diff --quiet; then
196196
log_info "Committing version number change..."
197197
git add "settings.py" "template.yaml"
198198
git commit --signoff --message "ci(release): Update version from ${CURRENT_VERSION} to ${FORWARDER_VERSION}"

0 commit comments

Comments
 (0)