misc: add script to update LJM to the latest commit

This commit is contained in:
Saúl Ibarra Corretgé 2020-07-10 11:07:40 +02:00 committed by Saúl Ibarra Corretgé
parent 62ad7d3451
commit 546b0abe32
1 changed files with 16 additions and 0 deletions

16
resources/update-ljm.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e -u
THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
LATEST_LJM_COMMIT=$(git ls-remote https://github.com/jitsi/lib-jitsi-meet.git HEAD | awk '{ print $1 }')
pushd ${THIS_DIR}/..
npm install github:jitsi/lib-jitsi-meet#${LATEST_LJM_COMMIT}
git add package.json package-lock.json
git commit -m "deps: lib-jitsi-meet@latest"
popd
echo "Done! Now push your branch to GH and open a PR!"