From de691d7503900470ae63f56256c20633c6de6052 Mon Sep 17 00:00:00 2001 From: davidliu Date: Fri, 13 Mar 2026 02:54:04 +0900 Subject: [PATCH 1/4] logging for fix --- .github/workflows/fetch-webrtc-artifacts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/fetch-webrtc-artifacts.yml b/.github/workflows/fetch-webrtc-artifacts.yml index 5f75086..48bc80c 100644 --- a/.github/workflows/fetch-webrtc-artifacts.yml +++ b/.github/workflows/fetch-webrtc-artifacts.yml @@ -54,6 +54,7 @@ jobs: - name: Untar and extract libwebrtc.aar run: | mkdir -p ./aar-output + find ./artifacts/${{ matrix.path_suffix }} TAR=$(find ./artifacts/${{ matrix.path_suffix }} -name '${{ matrix.artifact_name }}' -type f | head -1) tar -xzf "$TAR" -C ./artifacts/${{ matrix.path_suffix }} cp "$(find ./artifacts/${{ matrix.path_suffix }} -name 'libwebrtc.aar' -type f | head -1)" ./aar-output/${{ matrix.output_name }} From afcf554ecf8735ad26f4307b9f9c343f4955dd45 Mon Sep 17 00:00:00 2001 From: davidliu Date: Fri, 13 Mar 2026 03:02:47 +0900 Subject: [PATCH 2/4] maybe fix --- .github/workflows/fetch-webrtc-artifacts.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fetch-webrtc-artifacts.yml b/.github/workflows/fetch-webrtc-artifacts.yml index 48bc80c..f6886d9 100644 --- a/.github/workflows/fetch-webrtc-artifacts.yml +++ b/.github/workflows/fetch-webrtc-artifacts.yml @@ -54,10 +54,22 @@ jobs: - name: Untar and extract libwebrtc.aar run: | mkdir -p ./aar-output - find ./artifacts/${{ matrix.path_suffix }} - TAR=$(find ./artifacts/${{ matrix.path_suffix }} -name '${{ matrix.artifact_name }}' -type f | head -1) - tar -xzf "$TAR" -C ./artifacts/${{ matrix.path_suffix }} - cp "$(find ./artifacts/${{ matrix.path_suffix }} -name 'libwebrtc.aar' -type f | head -1)" ./aar-output/${{ matrix.output_name }} + ARTIFACT_DIR="./artifacts/${{ matrix.path_suffix }}" + # Downloaded artifact is named webrtc.tar.gz (not artifact_name) + TAR=$(find "$ARTIFACT_DIR" -name 'webrtc.tar.gz' -type f | head -1) + if [[ -z "$TAR" ]]; then + echo "No webrtc.tar.gz found under $ARTIFACT_DIR. Contents:" + find "$ARTIFACT_DIR" -type f -o -type d | head -50 + exit 1 + fi + tar -xzf "$TAR" -C "$ARTIFACT_DIR" + AAR=$(find "$ARTIFACT_DIR" -name 'libwebrtc.aar' -type f | head -1) + if [[ -z "$AAR" ]]; then + echo "No libwebrtc.aar found after extract. Contents:" + find "$ARTIFACT_DIR" -type f | head -50 + exit 1 + fi + cp "$AAR" ./aar-output/${{ matrix.output_name }} - name: Upload AAR uses: actions/upload-artifact@v4 From 47770b0be741a6e2d42c5c1b277395265b637055 Mon Sep 17 00:00:00 2001 From: davidliu Date: Fri, 13 Mar 2026 03:15:49 +0900 Subject: [PATCH 3/4] upgrade old actions --- .github/workflows/fetch-webrtc-artifacts.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/fetch-webrtc-artifacts.yml b/.github/workflows/fetch-webrtc-artifacts.yml index f6886d9..f287aec 100644 --- a/.github/workflows/fetch-webrtc-artifacts.yml +++ b/.github/workflows/fetch-webrtc-artifacts.yml @@ -39,11 +39,8 @@ jobs: output_name: libwebrtc_prefixed_stripped.aar path_suffix: webrtc-android-prefixed-stripped steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download artifact - uses: dawidd6/action-download-artifact@v16 + uses: dawidd6/action-download-artifact@v17 with: run_id: ${{ inputs.run_id }} repo: ${{ inputs.repo }} @@ -72,7 +69,7 @@ jobs: cp "$AAR" ./aar-output/${{ matrix.output_name }} - name: Upload AAR - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ matrix.output_name }} path: ./aar-output/${{ matrix.output_name }} @@ -84,7 +81,7 @@ jobs: needs: fetch-artifacts steps: - name: Download all AARs - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: path: ./aar-output merge-multiple: true From f23a1cdf0044ca7f0b5446d12d6f45e8a9248299 Mon Sep 17 00:00:00 2001 From: davidliu Date: Fri, 13 Mar 2026 03:22:46 +0900 Subject: [PATCH 4/4] Add link for new draft release --- .github/workflows/fetch-webrtc-artifacts.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/fetch-webrtc-artifacts.yml b/.github/workflows/fetch-webrtc-artifacts.yml index f287aec..05e8cd0 100644 --- a/.github/workflows/fetch-webrtc-artifacts.yml +++ b/.github/workflows/fetch-webrtc-artifacts.yml @@ -87,6 +87,7 @@ jobs: merge-multiple: true - name: Create draft release and upload AARs + id: release uses: softprops/action-gh-release@v2 with: tag_name: ${{ github.event.inputs.release_tag }} @@ -95,3 +96,7 @@ jobs: aar-output/*.aar env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Link to draft release + run: | + echo "::notice title=Draft release ready::View draft release: ${{ steps.release.outputs.url }}"