From d456edf5680fb165d96ed6a88339b5f9d719d5de Mon Sep 17 00:00:00 2001 From: "polylane[bot]" <277585245+polylane[bot]@users.noreply.github.com> Date: Sat, 12 Sep 2026 21:06:24 +0000 Subject: [PATCH] devops: skip Azure report upload when report secrets are absent --- .github/workflows/tests_bidi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests_bidi.yml b/.github/workflows/tests_bidi.yml index 8cfbcacd2ef6a..23f90405e9bb7 100644 --- a/.github/workflows/tests_bidi.yml +++ b/.github/workflows/tests_bidi.yml @@ -85,7 +85,7 @@ jobs: job_name: ${{ matrix.channel }} - name: Azure Login - if: ${{ !cancelled() && github.ref == 'refs/heads/main' }} + if: ${{ !cancelled() && github.ref == 'refs/heads/main' && secrets.AZURE_BLOB_REPORTS_CLIENT_ID != '' }} uses: azure/login@532459ea530d8321f2fb9bb10d1e0bcf23869a43 # v3.0.0 with: client-id: ${{ secrets.AZURE_BLOB_REPORTS_CLIENT_ID }} @@ -93,7 +93,7 @@ jobs: subscription-id: ${{ secrets.AZURE_BLOB_REPORTS_SUBSCRIPTION_ID }} - name: Upload report.csv to Azure - if: ${{ !cancelled() && github.ref == 'refs/heads/main' }} + if: ${{ !cancelled() && github.ref == 'refs/heads/main' && secrets.AZURE_BLOB_REPORTS_CLIENT_ID != '' }} run: | REPORT_DIR='bidi-reports' azcopy cp "./test-results/report.csv" "https://mspwblobreport.blob.core.windows.net/\$web/$REPORT_DIR/${{ matrix.channel }}.csv"