We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e2f40dd + cb3acf8 commit 7c90d29Copy full SHA for 7c90d29
1 file changed
.github/workflows/ci.yml
@@ -6,8 +6,32 @@ on:
6
branches: [main]
7
8
jobs:
9
+ changes:
10
+ name: Detect changes
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: read
14
+ pull-requests: read
15
+ outputs:
16
+ non-md: ${{ steps.filter.outputs.non-md }}
17
+ steps:
18
+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
19
+ with:
20
+ fetch-depth: 0
21
+
22
+ - name: Filter non-Markdown changes
23
+ id: filter
24
+ uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
25
26
+ filters: |
27
+ non-md:
28
+ - '!(**/*.md)'
29
+ - '!(**/*.md)/**'
30
31
unit-tests:
32
name: Unit Tests
33
+ needs: changes
34
+ if: needs.changes.outputs.non-md == 'true'
35
runs-on: windows-latest
36
steps:
37
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
0 commit comments