From: Anil Belur Date: Sun, 2 Apr 2023 02:34:11 +0000 (+0530) Subject: Fix: condition before pushing the object. X-Git-Tag: v0.85.0~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F71491%2F1;p=releng%2Fglobal-jjb.git Fix: condition before pushing the object. Signed-off-by: Anil Belur Change-Id: If1d091bd9e94fa5337053094b0101541bb056ca4 --- 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"