From ff3f5ab65eb46865ad1b67a3f50fc5dc262fdc13 Mon Sep 17 00:00:00 2001 From: AzamatKomaev Date: Wed, 16 Oct 2024 14:28:04 +0300 Subject: [PATCH] add if statement for deploy job --- .github/workflows/deploy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 7d1f9ca..f29ac12 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -22,6 +22,7 @@ env: jobs: deploy: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v4 - run: 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'