Fix webrtc build

This commit is contained in:
Antoine Martin 2024-10-07 08:37:57 -04:00
parent 3016fa94ea
commit 38e57cc903
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -36,7 +36,7 @@ jobs:
if test $GITHUB_REF_NAME == "ci" ; then
echo ${{ inputs.ref_name }} > webrtcver
else
curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/$CI_REF_NAME/package-lock.json | grep "@signalapp/ringrtc\": \"" | awk '{print $2}' | tr -d ',' | tr -d '"' | head -n 1 > ringrtcver
curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/$GITHUB_REF_NAME/package-lock.json | grep "@signalapp/ringrtc\": \"" | awk '{print $2}' | tr -d ',' | tr -d '"' | head -n 1 > ringrtcver
read _ringrtcver < ringrtcver
curl --silent https://raw.githubusercontent.com/signalapp/ringrtc/v$_ringrtcver/config/version.properties | awk -F '=' '{if($1 == "webrtc.version"){print $2}}' | head -n 1 > webrtcver
fi