add file filter check to nginx workflow

This commit is contained in:
mahula 2023-03-21 09:29:39 +01:00
parent 8ffe58fc5e
commit 20c1261c2c
2 changed files with 22 additions and 1 deletions

View File

@ -40,4 +40,7 @@ federation: &federation
- 'federation/**/*'
frontend: &frontend
- 'frontend/**/*'
- 'frontend/**/*'
nginx: &nginx
- 'nginx/**/*'

View File

@ -3,8 +3,26 @@ name:
on: push
jobs:
files-changed:
name: Detect File Changes - Frontend
runs-on: ubuntu-latest
outputs:
nginx: ${{ steps.changes.outputs.nginx }}
steps:
- uses: actions/checkout@v3.3.0
- name: Check for nginx file changes
uses: dorny/paths-filter@v2.11.1
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
list-files: shell
build_test_nginx:
name: Docker Build Test - Nginx
if: needs.files-changed.outputs.nginx == 'true'
needs: files-changed
runs-on: ubuntu-latest
steps:
uses: actions/checkout@v3