Skip to content

Commit 97770ce

Browse files
authored
Run manifest ci check only when PR is labelled (#4568)
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
1 parent b515bf0 commit 97770ce

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/manifests.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
---
2-
name: manifests
2+
name: manifests-ci-check
33

44
on:
55
pull_request:
6-
paths:
7-
- 'manifests/**/*.yml'
8-
- '!manifests/templates/**/'
9-
- 'legacy-manifests/**/*.yml'
6+
types: [labeled]
7+
paths:
8+
- 'manifests/**/*.yml'
9+
- '!manifests/templates/**/'
10+
- 'legacy-manifests/**/*.yml'
1011

1112
jobs:
1213
list-changed-manifests:
14+
if: ${{ github.repository == 'opensearch-project/opensearch-build' && github.event.label.name == 'manifest-ci-check' }}
1315
runs-on: ubuntu-latest
1416
outputs:
1517
matrix: ${{ steps.set-matrix.outputs.matrix }}

0 commit comments

Comments
 (0)