From 6a0b436635d9becee19fa50a1a6569b86f154c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilien=20Pressens=C3=A9?= Date: Fri, 22 Nov 2024 14:52:32 +0100 Subject: [PATCH] deploy only if CI is succesful --- .github/workflows/deploy.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3c5cbbc..593dd13 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,13 +5,19 @@ concurrency: cancel-in-progress: true on: - push: - branches: [main] + workflow_run: + workflows: ["CI"] + types: + - completed + branches: + - main + jobs: deploy: name: Deploy runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout code