diff --git a/.forgejo/workflows/generate-webrtc.yml b/.forgejo/workflows/generate-webrtc.yml index 9ed11bce73a..8380f88aecf 100644 --- a/.forgejo/workflows/generate-webrtc.yml +++ b/.forgejo/workflows/generate-webrtc.yml @@ -37,6 +37,7 @@ jobs: else CI_REF_NAME=$GITHUB_REF_NAME fi + echo $CI_REF_NAME > 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 curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/$CI_REF_NAME/package-lock.json | grep "@signalapp/libsignal-client\": \"" | awk '{print $2}' | tr -d ',' | tr -d '"' | head -n 1 > libsignalver curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/$CI_REF_NAME/package-lock.json | grep "@signalapp/better-sqlite3\": \"" | awk '{print $2}' | tr -d ',' | tr -d '"' | head -n 1 > bsqlitever @@ -79,7 +80,8 @@ jobs: - name: Package deployment run: | read _webrtcver < webrtcver - echo "Sending to ${{ github.server_url }}/api/packages/mirrors/generic/webrtc/$_webrtcver/webrtc-$_webrtcver.tar.zst" + read CI_REF_NAME < ci_ref_name + echo "Sending to ${{ github.server_url }}/api/packages/mirrors/generic/signal-desktop/$CI_REF_NAME/webrtc-$_webrtcver.tar.zst" curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file webrtc-*.tar.zst ${{ github.server_url }}/api/packages/mirrors/generic/signal-desktop/$CI_REF_NAME/webrtc-$_webrtcver.tar.zst curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file webrtc-*.tar.zst.sha512sum ${{ github.server_url }}/api/packages/mirrors/generic/signal-desktop/$CI_REF_NAME/webrtc-$_webrtcver.tar.zst.sha512sum curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file webrtc-*.tar.zst.sha256sum ${{ github.server_url }}/api/packages/mirrors/generic/signal-desktop/$CI_REF_NAME/webrtc-$_webrtcver.tar.zst.sha256sum