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"