From 8268ef19530771f7e8383ac2b28906feb69e85ff Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Sun, 2 Apr 2023 08:04:11 +0530 Subject: [PATCH] Fix: condition before pushing the object. Signed-off-by: Anil Belur Change-Id: If1d091bd9e94fa5337053094b0101541bb056ca4 --- .../notes/fix-condition-before-pushing-object-97add454bc88ee31.yaml | 4 ++++ shell/release-job.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/fix-condition-before-pushing-object-97add454bc88ee31.yaml diff --git a/releasenotes/notes/fix-condition-before-pushing-object-97add454bc88ee31.yaml b/releasenotes/notes/fix-condition-before-pushing-object-97add454bc88ee31.yaml new file mode 100644 index 00000000..54aafbee --- /dev/null +++ b/releasenotes/notes/fix-condition-before-pushing-object-97add454bc88ee31.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + Fix condition before pushing the object. diff --git a/shell/release-job.sh b/shell/release-job.sh index 56e37c3d..24bb0d6c 100644 --- a/shell/release-job.sh +++ b/shell/release-job.sh @@ -366,7 +366,7 @@ tag-git-repo(){ git config user.name "$RELEASE_USERNAME" git config user.email "$RELEASE_EMAIL" # Check if sentinal file exists - if [[ ! -f .testhash ]]; then + if [[ -f .testhash ]]; then git push origin "${GERRIT_BRANCH}" "$GIT_TAG" else git push origin "$GIT_TAG" -- 2.16.6