Only run if changed (#444)

This commit is contained in:
AbdBarho 2023-05-04 22:54:37 +02:00 committed by GitHub
parent 0e5801e9d6
commit 36f39043de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,9 +4,9 @@ on:
push: push:
branches: master branches: master
pull_request: pull_request:
paths: paths:
- docker-compose.yml - docker-compose.yml
- services - services
jobs: jobs:
build: build:
@ -22,4 +22,18 @@ jobs:
name: ${{ matrix.profile }} name: ${{ matrix.profile }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
auto:
- 'services/auto/**'
sygil:
- 'services/sygil/**'
invoke:
- 'services/invoke/**'
comfy:
- 'services/comfy/**'
- run: docker compose --profile ${{ matrix.profile }} build --progress plain - run: docker compose --profile ${{ matrix.profile }} build --progress plain
if: github.ref == 'refs/heads/master' || steps.changes.outputs.${{ matrix.profile }} == 'true'