Skip to content

Commit a73e505

Browse files
authored
Merge pull request #56 from opendatahub-io/limit_runs
Limit the build runs to mcp dir
2 parents 1505851 + 89ca976 commit a73e505

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/mcp-builds.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ name: MCP builds
22
on:
33
push:
44
branches: [ main ]
5+
paths:
6+
- 'mcp-servers/**'
57
pull_request:
68
branches: [ main ]
7-
workflow_dispatch:
9+
paths:
10+
- 'mcp-servers/**'
811

912
jobs:
1013
ansible:
@@ -15,6 +18,7 @@ jobs:
1518
uses: actions/checkout@v4
1619

1720
- name: login to quay.io
21+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
1822
uses: docker/login-action@v3
1923
with:
2024
registry: quay.io
@@ -40,6 +44,7 @@ jobs:
4044
uses: actions/checkout@v4
4145

4246
- name: login to quay.io
47+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4348
uses: docker/login-action@v3
4449
with:
4550
registry: quay.io
@@ -64,6 +69,7 @@ jobs:
6469
uses: actions/checkout@v4
6570

6671
- name: login to quay.io
72+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
6773
uses: docker/login-action@v3
6874
with:
6975
registry: quay.io
@@ -88,6 +94,7 @@ jobs:
8894
uses: actions/checkout@v4
8995

9096
- name: login to quay.io
97+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
9198
uses: docker/login-action@v3
9299
with:
93100
registry: quay.io

0 commit comments

Comments
 (0)