Add checkout to conditional ci workflow

This commit is contained in:
shamoon 2023-09-30 11:09:56 -07:00
parent 2e6e1d088a
commit 3da5f6b3da
2 changed files with 21 additions and 19 deletions

View File

@ -32,19 +32,20 @@ jobs:
outputs: outputs:
src: ${{ steps.filter.outputs.src }} src: ${{ steps.filter.outputs.src }}
steps: steps:
- uses: dorny/paths-filter@v2 - uses: actions/checkout@v4
id: filter - uses: dorny/paths-filter@v2
with: id: filter
filters: | with:
src: filters: |
- 'src/**' src:
- 'Dockerfile' - 'src/**'
- 'docker-entrypoint.sh' - 'Dockerfile'
- 'package.json' - 'docker-entrypoint.sh'
- 'package-lock.json' - 'package.json'
- 'pnpm-lock.yaml' - 'package-lock.json'
- 'tailwind.config.js' - 'pnpm-lock.yaml'
- 'postcss.config.js' - 'tailwind.config.js'
- 'postcss.config.js'
build: build:
name: Docker Build & Push name: Docker Build & Push
needs: changes needs: changes

View File

@ -20,12 +20,13 @@ jobs:
outputs: outputs:
docs: ${{ steps.filter.outputs.docs }} docs: ${{ steps.filter.outputs.docs }}
steps: steps:
- uses: dorny/paths-filter@v2 - uses: actions/checkout@v4
id: filter - uses: dorny/paths-filter@v2
with: id: filter
filters: | with:
docs: filters: |
- 'docs/**' docs:
- 'docs/**'
test: test:
needs: changes needs: changes
name: Test Build name: Test Build