From 4a99346c9b6c34597d0f51bdd13e10cc5288331f Mon Sep 17 00:00:00 2001 From: "Tashi D. Gyeltshen" Date: Mon, 13 May 2024 17:31:20 -0400 Subject: [PATCH] Fix if condition. --- .github/workflows/deployment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 449f88d..ade9f30 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -3,14 +3,14 @@ name: sonic-connect-deployment on: workflow_run: workflows: [sonic-connect-gh-actions] + branches: [main] types: - completed jobs: build-and-deploy: runs-on: ubuntu-latest - needs: sonic-connect-gh-actions - if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.repository.default_branch == 'main' }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout GitHub Action uses: actions/checkout@v4