Skip to content

Rename like to thumb up #101

Rename like to thumb up

Rename like to thumb up #101

Workflow file for this run

name: Check evenodds
on:
workflow_dispatch:
# push:
# paths:
# - "icons/**"
pull_request:
branches:
- production
paths:
- "icons/**"
jobs:
check-evenodd:
runs-on: ubuntu-latest
steps:
- name: Checkout del código
uses: actions/checkout@v3
- name: Search for evenodd icons
run: |
ICONS_DIR="icons"
files_with_evenodd=""
for file in $(find $ICONS_DIR -name "*.svg"); do
if grep -q "evenodd" "$file"; then
# Remove the "icons/" part of the path
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 "\n\033[4mEvenodd icons\033[0m\n"
echo -e "$files_with_evenodd"
exit 1 # End the execution with an error code
fi