Skip to content

Commit

Permalink
remove links to the file
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudTT committed Sep 18, 2024
1 parent 82e600e commit a45ff51
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/lint-and-license-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,13 @@ jobs:
header_errors=$(echo "$clean_output" | grep 'missing header')
lint_errors=$(echo "$clean_output" | grep 'error' | grep -v 'missing header')
# Format the output to highlight file names
# Format the output to highlight file names in bold
format_output() {
echo "$1" | while read -r line; do
file=$(echo "$line" | awk '{print $1}')
error_msg=$(echo "$line" | cut -d' ' -f3-)
# Generate markdown link to the file
file_link="[**$file**](https://github.com/${GITHUB_REPOSITORY}/blob/${GITHUB_SHA}/${file})"
echo "$file_link $error_msg"
# Output the filename in bold followed by the error message
echo "**$file** $error_msg"
done
}
Expand Down Expand Up @@ -100,7 +99,6 @@ jobs:
});
} else {
console.log("No relevant errors to report.");
}
- name: Fail if Errors Exist
if: env.HAS_ERRORS == 'true'
Expand Down

0 comments on commit a45ff51

Please sign in to comment.