Only run if changed (#444)

pull/445/head
AbdBarho 1 year ago committed by GitHub
parent 0e5801e9d6
commit 36f39043de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,9 +4,9 @@ on:
push:
branches: master
pull_request:
paths:
- docker-compose.yml
- services
paths:
- docker-compose.yml
- services
jobs:
build:
@ -22,4 +22,18 @@ jobs:
name: ${{ matrix.profile }}
steps:
- 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
if: github.ref == 'refs/heads/master' || steps.changes.outputs.${{ matrix.profile }} == 'true'

Loading…
Cancel
Save