From e4713e32ad661283508512529a012287f74157b0 Mon Sep 17 00:00:00 2001 From: "Sam A. Horvath-Hunt" Date: Mon, 5 Jun 2023 20:56:15 +0100 Subject: [PATCH] Make deploy workflow conditional --- .github/workflows/deploy.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6ce1572..afb4d95 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,13 +5,15 @@ name: Deploy on: - push: - branches: - - master + workflow_run: + workflows: Check + branches: master + types: completed jobs: deploy: name: Deploy + if: github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -34,6 +36,7 @@ jobs: docs: name: Publish docs + if: github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest permissions: contents: read