From 13dc1ef701e16c03bc24121e1c69a11a8cc6510c Mon Sep 17 00:00:00 2001 From: Lucas Colley Date: Mon, 30 Sep 2024 19:25:11 +0100 Subject: [PATCH] CD: try to fix race condition --- .github/workflows/docs-deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 59845b0..5ba6577 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -1,13 +1,16 @@ name: Docs Deploy on: - push: + workflow_run: + workflows: ["Docs Build"] + types: [completed] branches: - - main + - "main" jobs: docs-deploy: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.event == 'push' }} environment: name: docs-deploy steps: @@ -27,4 +30,3 @@ jobs: with: folder: docs/build/ ssh-key: ${{ secrets.DEPLOY_KEY }} - force: yes