From 97770ce8a3fde527f366d91f12af2f2d432dc690 Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad <61760125+gaiksaya@users.noreply.github.com> Date: Mon, 25 Mar 2024 15:49:06 -0700 Subject: [PATCH] Run manifest ci check only when PR is labelled (#4568) Signed-off-by: Sayali Gaikawad --- .github/workflows/manifests.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/manifests.yml b/.github/workflows/manifests.yml index 82954d0460..bb7be2cb8c 100644 --- a/.github/workflows/manifests.yml +++ b/.github/workflows/manifests.yml @@ -1,15 +1,17 @@ --- -name: manifests +name: manifests-ci-check on: pull_request: - paths: - - 'manifests/**/*.yml' - - '!manifests/templates/**/' - - 'legacy-manifests/**/*.yml' + types: [labeled] + paths: + - 'manifests/**/*.yml' + - '!manifests/templates/**/' + - 'legacy-manifests/**/*.yml' jobs: list-changed-manifests: + if: ${{ github.repository == 'opensearch-project/opensearch-build' && github.event.label.name == 'manifest-ci-check' }} runs-on: ubuntu-latest outputs: matrix: ${{ steps.set-matrix.outputs.matrix }}