fix building only if files changed
This commit is contained in:
parent
40715f4ad8
commit
076fa0a544
1 changed files with 15 additions and 9 deletions
24
.github/workflows/build.yaml
vendored
24
.github/workflows/build.yaml
vendored
|
|
@ -20,22 +20,28 @@ jobs:
|
||||||
path-filter:
|
path-filter:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
changed: ${{ steps.filter.outputs.changed }}
|
changed: ${{ steps.filter.outputs.any_changed }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: dorny/paths-filter@v3
|
- uses: tj-actions/changed-files@v45
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
filters: |
|
files: |
|
||||||
changed:
|
lib/**
|
||||||
- 'lib/**'
|
modules/**
|
||||||
- 'modules/**'
|
!modules/**/docs/**
|
||||||
- '!modules/**/docs/**'
|
test/**
|
||||||
- 'test/**'
|
.github/workflows/build.yaml
|
||||||
- '.github/workflows/build.yaml'
|
separator: "\n"
|
||||||
|
|
||||||
|
- env:
|
||||||
|
ALL_CHANGED_FILES: ${{ steps.filter.outputs.all_changed_files }}
|
||||||
|
run: |
|
||||||
|
echo $ALL_CHANGED_FILES
|
||||||
|
|
||||||
|
|
||||||
build-matrix:
|
build-matrix:
|
||||||
needs: [ "path-filter" ]
|
needs: [ "path-filter" ]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue