Skip to content

Commit 637db6f

Browse files
author
pixelead0
committed
fix: corregir ruta del script check_links.py en workflow
- Usar ${{ github.workspace }} para garantizar directorio correcto - Mejorar gestión de directorios en paso de broken links - Agregar comentarios para mayor claridad Esto resuelve el error 'No such file or directory' del script.
1 parent 030a358 commit 637db6f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,15 @@ jobs:
3636

3737
- name: Check for broken links
3838
run: |
39+
# Iniciar servidor HTTP en background
3940
cd site && python -m http.server 8000 &
4041
sleep 10
4142
42-
cd .. && python scripts/check_links.py
43+
# Ejecutar check de links desde el directorio raíz
44+
cd ${{ github.workspace }}
45+
python scripts/check_links.py
4346
47+
# Verificar resultado
4448
broken_count=$(jq '.summary.broken_links' broken_links.json)
4549
4650
if [ "$broken_count" -gt 0 ]; then

0 commit comments

Comments
 (0)