From d799e78ae4fc0e05e1e86455a3bcabb007609fd9 Mon Sep 17 00:00:00 2001 From: Hussam Ghazzi Date: Wed, 8 Jan 2025 12:37:06 -0500 Subject: [PATCH] skip download if failed --- .github/workflows/deploy_preview.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy_preview.yml b/.github/workflows/deploy_preview.yml index 39c2a1070e3..baf1c5c5636 100644 --- a/.github/workflows/deploy_preview.yml +++ b/.github/workflows/deploy_preview.yml @@ -33,21 +33,25 @@ jobs: - name: Build docs preview run: npm run build:docs:preview - name: Download VRT reports (All flags enabled) + if: ${{ needs.vrt-reports.result == 'success' }} uses: actions/download-artifact@v4 with: name: vrt-all-flags path: docs/public/vrt-all-flags - name: Download VRT reports (No flags enabled) + if: ${{ needs.vrt-reports.result == 'success' }} uses: actions/download-artifact@v4 with: name: vrt-no-flag path: docs/public/vrt-no-flag - name: Download AAT reports (All flags enabled) + if: ${{ needs.aat-reports.result == 'success' }} uses: actions/download-artifact@v4 with: name: axe-all-flags path: docs/public/aat-all-flags - name: Download AAT reports (No flags enabled) + if: ${{ needs.aat-reports.result == 'success' }} uses: actions/download-artifact@v4 with: name: axe