Skip to content

Commit

Permalink
normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
yceballost committed Oct 15, 2023
1 parent 60ece0a commit c00c524
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 10 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/evenodd-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Search & Destroy evenodds
name: Check evenodds

on:
push:
Expand All @@ -11,20 +11,27 @@ on:
- "icons/**"

jobs:
build:
check_evenodd:
runs-on: ubuntu-latest

steps:
- name: Checkout del código
uses: actions/checkout@v2

- name: Buscar palabra en archivos SVG
run: |
ICONS_DIR="icons"
files_with_evenodd=""
for file in $(find icons -name "*.svg"); do
for file in $(find $ICONS_DIR -name "*.svg"); do
if grep -q "evenodd" "$file"; then
# echo "Se encontró la palabra 'evenodd' en $file"
files_with_evenodd="${files_with_evenodd}${file}\n"
# Quitar la parte "icons/" de la ruta
file_without_icons="${file#$ICONS_DIR/}"
files_with_evenodd="${files_with_evenodd}\033[0;31m× $file_without_icons\033[0m\n"
fi
done
if [ -n "$files_with_evenodd" ]; then
echo -e "Archivos con 'evenodd':\n${files_with_evenodd}"
echo -e "\n\033[4mEvenodd icons\033[0m\n"
echo -e "$files_with_evenodd \n"
exit 1
fi
6 changes: 3 additions & 3 deletions .github/workflows/keywords-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- "icons/**"

jobs:
check_icons:
check_keywords:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -65,13 +65,13 @@ jobs:
missing_keywords=""
for icon_name in $(cat icons.txt); do
if ! grep -q "\"$icon_name\":" data.json; then
missing_keywords="$missing_keywords\n\033[0;31m × $icon_name\033[0m "
missing_keywords="$missing_keywords\n\033[0;31m × $icon_name\033[0m"
fi
done
# Mostrar la lista completa de elementos que faltan
if [ -n "$missing_keywords" ]; then
echo -e "\n\033[1mMissing Keywords:\033[0m"
echo -e "\n\033[4mMissing Keywords\033[0m"
echo -e "$missing_keywords \n"
exit 1 # Terminar la ejecución con un código de error
fi
Expand Down
4 changes: 4 additions & 0 deletions icons/telefonica/regular/tickets-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/tickets-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion icons/vivo-new/light/tickets-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/vivo-new/tickets-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c00c524

Please sign in to comment.