From dbc33dc6c7219048e0928f1d970f92cf05693184 Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad Date: Mon, 25 Mar 2024 15:20:22 -0700 Subject: [PATCH] Run manifest ci check only when PR is labelled 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 }}