Skip to content

Commit

Permalink
Running with the checked in image
Browse files Browse the repository at this point in the history
  • Loading branch information
Rd4dev committed Sep 4, 2024
1 parent d56846b commit 2bff617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/static_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ jobs:
if [ $exit_code -eq 0 ]; then
echo "No binary files found"
echo "BINARY FILES CHECK PASSED"
else
echo "BINARY FILES CHECK FAILED"
fi
- name: Regex Patterns Validation Check
Expand Down
2 changes: 2 additions & 0 deletions scripts/pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ changed_files=$(git diff --name-only "$base_commit" HEAD)

# Combine both lists of files, ensuring no duplicates
all_files=$(echo -e "$staged_files\n$changed_files" | sort -u)
echo "$all_files"

function checkForBinaries() {
binaryFilesCount=0
Expand All @@ -28,6 +29,7 @@ function checkForBinaries() {
if [[ -n "${binaryFiles}" && "${binaryFilesCount}" -gt 0 ]]; then
printf "\nPlease remove the following binary file(s):\n\n"
printf "\033[33m%b\033[0m\n" "$binaryFiles"
printf "BINARY FILES CHECK FAILED\n"
exit 1
fi
}
Expand Down

0 comments on commit 2bff617

Please sign in to comment.