We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7783bf6 commit 8666975Copy full SHA for 8666975
.github/workflows/codacy-variation-fallback.yml
@@ -32,15 +32,17 @@ jobs:
32
id: parse-codacy-exclusions
33
run: |
34
35
- if [ ! -f codacy.yml ]; then
36
- echo "No codacy.yml found, defaulting to basic ignores."
+ FILE_NAME=".codacy.yml"
+
37
+ if [ ! -f "$FILE_NAME" ]; then
38
+ echo "::warning::File $FILE_NAME not found. Basic ignored configuration file will be used."
39
echo "filters=**" >> $GITHUB_OUTPUT
40
exit 0
41
fi
42
43
# Extract excluded paths and add the 'codacy.yml' file itself
- EXCLUDES=$(yq '.exclude_paths[]' codacy.yml)
- STATIC_IGNORES=$'.github/**\ncodacy.yml'
44
+ EXCLUDES=$(yq '.exclude_paths[]' "$FILE_NAME")
45
+ STATIC_IGNORES=$'.github/**\n.codacy.yml'
46
47
48
# Build a paths-filter pattern
0 commit comments