Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evenodd rule improvement (test) #269

Draft
wants to merge 20 commits into
base: production
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions .github/workflows/evenodd-test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Search & Destroy evenodds
name: Buscar palabra en archivos SVG y actualizar comentario de la PR

on:
push:
paths:
- "icons/"
pull_request:
branches:
- production
Expand All @@ -13,16 +10,32 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout del repositorio
uses: actions/checkout@v2

- name: Buscar palabra en archivos SVG
id: buscar-palabra
run: |
files_with_evenodd=""
for file in $(find icons -name "*.svg"); do
if grep -q "evenodd" "$file"; then
# echo "Se encontró la palabra 'evenodd' en $file"
echo "Se encontró la palabra 'evenodd' en $file"
files_with_evenodd="${files_with_evenodd}${file}\n"
fi
done
if [ -n "$files_with_evenodd" ]; then
echo -e "Archivos con 'evenodd':\n${files_with_evenodd}"
exit 1
echo -e "::set-output name=evenodd_files::${files_with_evenodd}"
fi

- name: Actualizar comentario de la PR
if: ${{ github.event_name == 'pull_request' }}
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Archivos con 'evenodd':
- ${{ steps.buscar-palabra.outputs.evenodd_files }}

- name: Verificar archivos con evenodd
if: ${{ steps.buscar-palabra.outputs.evenodd_files != '' }}
run: exit 1
2 changes: 1 addition & 1 deletion icons/telefonica/regular/add-more-circle-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion icons/telefonica/regular/add-more-location-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading