diff --git a/.github/workflows/deploy_preview.yml b/.github/workflows/deploy_preview.yml index 9d41d17faaa..4f86fd45108 100644 --- a/.github/workflows/deploy_preview.yml +++ b/.github/workflows/deploy_preview.yml @@ -107,36 +107,36 @@ jobs: state: 'failure' deployment-id: ${{ steps.storybook.outputs.deployment_id }} - # deploy-vrt-no-flag: - # name: VRT (No flags enabled) - # if: ${{ always() && github.event.pull_request.head.repo.full_name == 'primer/react' }} - # needs: [vrt-reports, deploy-preview] - # permissions: - # deployments: write - # runs-on: ubuntu-latest - # steps: - # - uses: chrnorm/deployment-action@v2.0.7 - # name: Create GitHub deployment for vrt-no-flag - # id: vrt-no-flag - # with: - # token: ${{ secrets.GITHUB_TOKEN }} - # environment: vrt-no-flag--${{ github.event.number }} - # environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}vrt-no-flag' - # - name: Update vrt-no-flag deployment status (success) - # if: success() - # uses: chrnorm/deployment-status@v2.0.3 - # with: - # token: ${{ secrets.GITHUB_TOKEN }} - # environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}vrt-no-flag' - # state: 'success' - # deployment-id: ${{ steps.vrt-no-flag.outputs.deployment_id }} - # - name: Update vrt-no-flag deployment status (failure) - # if: failure() - # uses: chrnorm/deployment-status@v2.0.3 - # with: - # token: ${{ secrets.GITHUB_TOKEN }} - # state: 'failure' - # deployment-id: ${{ steps.vrt-no-flag.outputs.deployment_id }} + deploy-vrt-no-flag: + name: VRT (No flags enabled) + if: ${{ always() && github.event.pull_request.head.repo.full_name == 'primer/react' }} + needs: [deploy-preview] + permissions: + deployments: write + runs-on: ubuntu-latest + steps: + - uses: chrnorm/deployment-action@v2.0.7 + name: Create GitHub deployment for vrt-no-flag + id: vrt-no-flag + with: + token: ${{ secrets.GITHUB_TOKEN }} + environment: vrt-no-flag--${{ github.event.number }} + environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}vrt-no-flag' + - name: Update vrt-no-flag deployment status (success) + if: success() + uses: chrnorm/deployment-status@v2.0.3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}vrt-no-flag' + state: 'success' + deployment-id: ${{ steps.vrt-no-flag.outputs.deployment_id }} + - name: Update vrt-no-flag deployment status (failure) + if: failure() + uses: chrnorm/deployment-status@v2.0.3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + state: 'failure' + deployment-id: ${{ steps.vrt-no-flag.outputs.deployment_id }} # deploy-vrt-all-flags: # name: VRT (All flags enabled)