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' }}