Skip to content

Commit 8666975

Browse files
authored
ci: Update codacy-variation-fallback.yml
1 parent 7783bf6 commit 8666975

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,17 @@ jobs:
3232
id: parse-codacy-exclusions
3333
run: |
3434
35-
if [ ! -f codacy.yml ]; then
36-
echo "No codacy.yml found, defaulting to basic ignores."
35+
FILE_NAME=".codacy.yml"
36+
37+
if [ ! -f "$FILE_NAME" ]; then
38+
echo "::warning::File $FILE_NAME not found. Basic ignored configuration file will be used."
3739
echo "filters=**" >> $GITHUB_OUTPUT
3840
exit 0
3941
fi
4042
4143
# Extract excluded paths and add the 'codacy.yml' file itself
42-
EXCLUDES=$(yq '.exclude_paths[]' codacy.yml)
43-
STATIC_IGNORES=$'.github/**\ncodacy.yml'
44+
EXCLUDES=$(yq '.exclude_paths[]' "$FILE_NAME")
45+
STATIC_IGNORES=$'.github/**\n.codacy.yml'
4446
4547
4648
# Build a paths-filter pattern

0 commit comments

Comments
 (0)