Trigger a failure if not all files are added to SVN

Abierto
#100 1 comentario 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
github-actions, shell, wordpress
Área
devops, release

Línea de trabajo

Comienza con deploy.sh alrededor de la línea 125 y el registro de build fallido enlazado; después revisa cómo se añaden archivos a SVN y cómo afecta svn:ignore a ese paso. El cambio estará completo cuando la action detecte archivos presentes que no se añadieron y falle antes del despliegue, con cobertura para el escenario de vendor-directory.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

help wanted needs:engineering type:enhancement

Is your enhancement related to a problem? Please describe.

There were some files missing from the most recent release of one of my plugins on wordpress.org, despite the .gitignore and .gitattributes configuration being correct. Everything with the build is fine right up to the point where the plugin gets deployed to the plugin directory.

The problem appears to be caused by an existing svn:ignore prop on the plugin directory, which I historically used to prevent files from being deployed before I switched to using this GitHub action. In the most recent release of the plugin I added files which matched the svn:ignore prop, hence when this action added the files they were actually ignored.

Here's the related portion of the script: https://github.com/10up/action-wordpress-plugin-deploy/blob/de0553e7b3e232ad24cf49c9548734568c5956fe/deploy.sh#L125

Describe the solution you'd like

It would be great if this action trigger a failure when some files that are present have not been added to svn, to prevent a broken release from being deployed to wordpress.org. I'm not yet sure how this could work.

Additional context

Lenguaje dominante
Shell
Estrellas
665
Forks
115
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de 10up/action-wordpress-plugin-deploy

Todos los issues de 10up/action-wordpress-plugin-deploy

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.