From 8a41b39f5e6ab7512b5daa11c4238ac6a9aeca6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Test=C3=A9?= Date: Thu, 12 Jan 2023 11:58:31 +0100 Subject: [PATCH] chore(ci): wait on all aws builds before publishing documentation --- .github/workflows/publish_doc.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_doc.yml b/.github/workflows/publish_doc.yml index d6e8b3b81..9cfaae353 100644 --- a/.github/workflows/publish_doc.yml +++ b/.github/workflows/publish_doc.yml @@ -2,16 +2,22 @@ name: Publish documentation on: workflow_run: - workflows: [AwsEc2BuildCpu] + workflows: [AwsEc2BuildCpu, AwsEc2BuildGpu] branches: - main types: - completed jobs: + WaitOnAllWorkflows: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ahmadnassri/action-workflow-run-wait@v1 + PublishDoc: runs-on: ubuntu-20.04 - if: ${{ github.event.workflow_run.conclusion == 'success' }} + needs: WaitOnAllWorkflows steps: - name: Download Documentation id: download