Skip to content

Commit

Permalink
fix file change filtering in test code workflow (#1317)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Schäfer <git@roschaefer.de>
  • Loading branch information
mahula and roschaefer authored Jul 2, 2024
1 parent 9b75ff8 commit b1b0b48
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,24 @@ name: "dreammall:test:code with defined tests & linters"
on: [push,pull_request_target]

jobs:
files-changed:
name: Detect File Changes - admin/
runs-on: ubuntu-latest
outputs:
markdown: ${{ steps.filter.outputs.markdown }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3.0.2
id: filter
with:
filters: |
markdown:
- '/**/*.md'
test:
if: needs.files-changed.outputs.markdown == 'true'
name: Test - Code
needs: files-changed
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down

0 comments on commit b1b0b48

Please sign in to comment.