Skip to content

Commit 82fd9ce

Browse files
authored
ci: update codacy-variation-fallback.yml
1 parent 489b8d6 commit 82fd9ce

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/codacy-variation-fallback.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,17 @@ jobs:
3131
id: changes
3232
with:
3333
filters: |
34-
relevant_files:
35-
# Files processed by Codacy Coverage Variation
36-
- "src/main/**"
34+
has_code_changes:
35+
- "src/main/**/*.java"
3736
# Excluded files from Codacy Coverage Variation
38-
- "!**/*.md"
39-
- "!**/*.yml"
40-
- "!.codacy.yml"
41-
- "!.github/**"
37+
has_non_coverable_changes:
38+
- "**/*.md"
39+
- "**/*.yml"
40+
- ".github/**"
4241
43-
# Bypass the 'Codacy Coverage Variation' when there are no relevant files able to trigger it.
42+
# Bypass the 'Codacy Coverage Variation' when there are no coverable files able to trigger it.
4443
- name: Create Success Check for Variation
45-
if: steps.changes.outputs.relevant_files == 'false'
44+
if: steps.changes.outputs.has_code_changes == 'false' && steps.changes.outputs.has_non_coverable_changes == 'true'
4645
uses: actions/github-script@v7
4746
with:
4847
script: |

0 commit comments

Comments
 (0)