Skip to content

Commit

Permalink
english instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
yceballost committed Oct 15, 2023
1 parent c00c524 commit 785b0f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/evenodd-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Checkout del código
uses: actions/checkout@v2

- name: Buscar palabra en archivos SVG
- name: Search for evenodd icons
run: |
ICONS_DIR="icons"
files_with_evenodd=""
Expand All @@ -33,5 +33,5 @@ jobs:
if [ -n "$files_with_evenodd" ]; then
echo -e "\n\033[4mEvenodd icons\033[0m\n"
echo -e "$files_with_evenodd \n"
exit 1
exit 1 # End the execution with an error code
fi
20 changes: 10 additions & 10 deletions .github/workflows/keywords-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ jobs:

- name: List SVG files
run: |
ICONS_DIR="icons" # Reemplaza con la ubicación real de tu carpeta de iconos
ICONS_DIR="icons"
echo "Listing SVG files..."
# Utiliza 'find' para encontrar todos los archivos SVG en la carpeta de iconos
# Use 'find' to get all SVG files in the icons directory
find $ICONS_DIR -type f -name "*.svg" |
# Utiliza 'basename' para obtener solo el nombre de archivo sin la ruta
# Use 'basemame' to get the file names without the path
xargs -I {} basename {} |
# Utiliza 'sed' para quitar las partes "-filled", "-light", "-regular" y la extensión ".svg"
# Use 'sed' to remove the "-filled", "-light", "-regular" parts and the ".svg" extension
sed 's/\(-filled\|-light\|-regular\)\.svg//' |
# Utiliza 'sort -u' para obtener una lista única de nombres de archivo
# Use 'sort -u' to get a unique list of file names
sort -u > icons.txt
# Muestra el contenido del archivo icons.txt en la consola
# Show the contents of the icons.txt file in the console
cat icons.txt
continue-on-error: false

Expand All @@ -51,10 +51,10 @@ jobs:
run: |
echo "Extracting keywords from JSON..."
# Usamos jq para extraer las claves del JSON y guardarlas en keywords.txt
# Use 'jq' to extract the keys from the JSON and save them to keywords.txt
cat data.json | jq -r 'keys[]' > keywords.txt
# Mostramos el contenido de keywords.txt para verificar que se han extraído correctamente
# Show the contents of the keywords.txt file in the console
cat keywords.txt
continue-on-error: true

Expand All @@ -69,11 +69,11 @@ jobs:
fi
done
# Mostrar la lista completa de elementos que faltan
# Show the complete list of missing elements
if [ -n "$missing_keywords" ]; then
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
exit 1 # End the execution with an error code
fi
continue-on-error: false

Expand Down

0 comments on commit 785b0f7

Please sign in to comment.