From f5b090b8132fbda2c29ce98113023400d054d6a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Can=20Karag=C3=B6z?= <78308169+mckaragoz@users.noreply.github.com> Date: Sat, 7 Nov 2026 21:30:45 +0300 Subject: [PATCH] Refine deploy condition in GitHub Actions workflow --- .github/workflows/deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cebd62a9..77684f07 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -82,7 +82,11 @@ jobs: deploy: name: Deploy needs: build - if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' + if: >- + !cancelled() && + needs.build.result == 'success' && + github.event_name != 'pull_request' && + github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: - name: Deploy to Server