فهرست منبع

fix: update commit msg and branch name [skip ci]

Baptiste Augrain 1 سال پیش
والد
کامیت
56e99f2989
1فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 6 4
      update_qualityjson.sh

+ 6 - 4
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