From b4bac711303dd2ca1f1a841d92568accd5705ad7 Mon Sep 17 00:00:00 2001 From: Purshottam Patidar Date: Tue, 25 Jun 2024 17:56:40 +0530 Subject: [PATCH] Updated workflow trigger condition to run on trigger Signed-off-by: Purshottam Patidar --- .github/workflows/deploy-quality.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-quality.yaml b/.github/workflows/deploy-quality.yaml index 160fb7363..bfa6eefb8 100644 --- a/.github/workflows/deploy-quality.yaml +++ b/.github/workflows/deploy-quality.yaml @@ -1,9 +1,10 @@ name: Deploy Impler to Quality on: - push: - branches: - - next + pull_request: + branches: [next] + types: + - closed jobs: build_api: @@ -11,7 +12,7 @@ jobs: contents: read packages: write deployments: write - if: ${{ contains(github.event.head_commit.message, 'api-changed') }} + if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'impler/api')) }} uses: ./.github/workflows/build-api.yml secrets: inherit