From 56e99f2989ca76263d54618e395be4b1c7632cc8 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Thu, 14 Dec 2023 21:11:53 +0100 Subject: [PATCH] fix: update commit msg and branch name [skip ci] --- update_qualityjson.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/update_qualityjson.sh b/update_qualityjson.sh index 9c0df70..06235b3 100755 --- a/update_qualityjson.sh +++ b/update_qualityjson.sh @@ -22,10 +22,12 @@ git add . CHANGES=$( git status --porcelain ) if [[ -n "${CHANGES}" ]]; then - git commit -m "build(insider): update to commit ${MS_COMMIT:0:7}" + git commit -m "build(${VSCODE_QUALITY}): update to commit ${MS_COMMIT:0:7}" - if ! git push origin insider --quiet; then - git pull origin insider - git push origin insider --quiet + BRANCH_NAME=$( git rev-parse --abbrev-ref HEAD ) + + if ! git push origin "${BRANCH_NAME}" --quiet; then + git pull origin "${BRANCH_NAME}" + git push origin "${BRANCH_NAME}" --quiet fi fi