Browse Source

fix: Fixes script with correct commit message.

Comparing releases as we may skip few releases.
factor2
Дамян Минков 3 years ago
parent
commit
d23cd7f77d
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      resources/update-ljm.sh

+ 7
- 1
resources/update-ljm.sh View File

@@ -28,13 +28,19 @@ if [[ "${CURRENT_LJM_DEP}" == "${LATEST_LJM_DEP}" ]]; then
28 28
     exit 1
29 29
 fi
30 30
 
31
+if [[ ${CURRENT_LJM_DEP} =~ ^.*download/(.*)/lib-jitsi-meet\.tgz$ ]]; then
32
+  COMMIT_MSG="https://github.com/jitsi/lib-jitsi-meet/compare/${BASH_REMATCH[1]}...${NEW_LJM_RELEASE}"
33
+else
34
+  COMMIT_MSG=${GH_LINK}
35
+fi
36
+
31 37
 pushd ${THIS_DIR}/..
32 38
 EPOCH=$(date +%s)
33 39
 NEW_BRANCH="update-ljm-${EPOCH}"
34 40
 git checkout -b ${NEW_BRANCH}
35 41
 npm install ${LATEST_LJM_DEP}
36 42
 git add package.json package-lock.json
37
-git commit -m "chore(deps) lib-jitsi-meet@latest" -m "${GH_LINK}"
43
+git commit -m "chore(deps) lib-jitsi-meet@latest" -m "${COMMIT_MSG}"
38 44
 git push origin ${NEW_BRANCH}
39 45
 gh pr create --repo jitsi/jitsi-meet --fill
40 46
 popd

Loading…
Cancel
Save