feat(skin) rename vivo-new into vivo, and introduce vivo-evolution (copy ov vivo-new) #246
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check evenodds | |
| permissions: | |
| contents: read | |
| 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@v6 | |
| with: | |
| persist-credentials: false | |
| - 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 |