From 1eeaea7d8df4c775f2c3b9a86042d8688a0b3e30 Mon Sep 17 00:00:00 2001 From: Hussam Ghazzi Date: Tue, 7 Jan 2025 13:50:09 -0500 Subject: [PATCH] Download artifacts --- .github/workflows/deploy_preview.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/deploy_preview.yml b/.github/workflows/deploy_preview.yml index 38d6969f96e..50fd961be74 100644 --- a/.github/workflows/deploy_preview.yml +++ b/.github/workflows/deploy_preview.yml @@ -1,5 +1,8 @@ name: Deploy Preview on: + workflow_run: + workflows: ['VRT Reports', 'AAT Reports'] + types: completed pull_request: concurrency: @@ -10,6 +13,7 @@ jobs: build: if: ${{ github.event.pull_request.head.repo.full_name == 'primer/react' }} runs-on: ubuntu-latest + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -26,6 +30,23 @@ jobs: with: name: github-pages path: docs/public + - name: Download VRT reports (All flags enabled) + uses: actions/download-artifact@v3 + with: + name: vrt-all-flags + path: docs/public/vrt-vrt-all-flags + - name: Download VRT reports (No flags enabled) + uses: actions/download-artifact@v3 + with: + name: vrt-no-flag + - name: Download AAT reports (All flags enabled) + uses: actions/download-artifact@v3 + with: + name: aat-all-flags + - name: Download AAT reports (No flags enabled) + uses: actions/download-artifact@v3 + with: + name: aat-no-flag deploy-preview: if: ${{ github.event.pull_request.head.repo.full_name == 'primer/react' }}