Skip to content

Commit

Permalink
ci(release): Fixing wrong condition for committing changes (#827)
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
  • Loading branch information
ViBiOh committed Jul 29, 2024
1 parent 7ab511a commit a53d01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/logs_monitoring/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit a53d01e

Please sign in to comment.