Skip to content

Commit 36f3904

Browse files
authored
Only run if changed (#444)
1 parent 0e5801e commit 36f3904

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/docker.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ on:
44
push:
55
branches: master
66
pull_request:
7-
paths:
8-
- docker-compose.yml
9-
- services
7+
paths:
8+
- docker-compose.yml
9+
- services
1010

1111
jobs:
1212
build:
@@ -22,4 +22,18 @@ jobs:
2222
name: ${{ matrix.profile }}
2323
steps:
2424
- uses: actions/checkout@v3
25+
- uses: dorny/paths-filter@v2
26+
id: changes
27+
with:
28+
filters: |
29+
auto:
30+
- 'services/auto/**'
31+
sygil:
32+
- 'services/sygil/**'
33+
invoke:
34+
- 'services/invoke/**'
35+
comfy:
36+
- 'services/comfy/**'
37+
2538
- run: docker compose --profile ${{ matrix.profile }} build --progress plain
39+
if: github.ref == 'refs/heads/master' || steps.changes.outputs.${{ matrix.profile }} == 'true'

0 commit comments

Comments
 (0)