mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
fix: Fixes script with correct commit message.
Comparing releases as we may skip few releases.
This commit is contained in:
@@ -28,13 +28,19 @@ if [[ "${CURRENT_LJM_DEP}" == "${LATEST_LJM_DEP}" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ${CURRENT_LJM_DEP} =~ ^.*download/(.*)/lib-jitsi-meet\.tgz$ ]]; then
|
||||||
|
COMMIT_MSG="https://github.com/jitsi/lib-jitsi-meet/compare/${BASH_REMATCH[1]}...${NEW_LJM_RELEASE}"
|
||||||
|
else
|
||||||
|
COMMIT_MSG=${GH_LINK}
|
||||||
|
fi
|
||||||
|
|
||||||
pushd ${THIS_DIR}/..
|
pushd ${THIS_DIR}/..
|
||||||
EPOCH=$(date +%s)
|
EPOCH=$(date +%s)
|
||||||
NEW_BRANCH="update-ljm-${EPOCH}"
|
NEW_BRANCH="update-ljm-${EPOCH}"
|
||||||
git checkout -b ${NEW_BRANCH}
|
git checkout -b ${NEW_BRANCH}
|
||||||
npm install ${LATEST_LJM_DEP}
|
npm install ${LATEST_LJM_DEP}
|
||||||
git add package.json package-lock.json
|
git add package.json package-lock.json
|
||||||
git commit -m "chore(deps) lib-jitsi-meet@latest" -m "${GH_LINK}"
|
git commit -m "chore(deps) lib-jitsi-meet@latest" -m "${COMMIT_MSG}"
|
||||||
git push origin ${NEW_BRANCH}
|
git push origin ${NEW_BRANCH}
|
||||||
gh pr create --repo jitsi/jitsi-meet --fill
|
gh pr create --repo jitsi/jitsi-meet --fill
|
||||||
popd
|
popd
|
||||||
|
|||||||
Reference in New Issue
Block a user