Fix manual webrtc build

This commit is contained in:
Antoine Martin 2024-09-27 09:53:46 -04:00
parent d9274fd32c
commit ba4418d50d
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -34,14 +34,12 @@ jobs:
run: |
echo $GITHUB_REF_NAME
if test $GITHUB_REF_NAME == "ci" ; then
CI_REF_NAME=${{ inputs.ref_name }}
echo ${{ inputs.ref_name }} > webrtcver
else
CI_REF_NAME=$GITHUB_REF_NAME
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
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
echo $CI_REF_NAME
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
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
- name: Fetching webrtc
run: |
read _webrtcver < webrtcver