Trigger a failure if not all files are added to SVN

Aberta
#100 1 comentário 1 reação 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
42/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
github-actions, shell, wordpress
Domínio
devops, release

Direção de pesquisa

Comece por deploy.sh por volta da linha 125 e pelo build log com falha vinculado; em seguida, revise como os arquivos são adicionados ao SVN e como svn:ignore afeta essa etapa. A alteração estará concluída quando a action detectar arquivos presentes que não foram adicionados e falhar antes da implantação, com cobertura para o cenário de vendor-directory.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Shell
Estrelas
665
Forks
115
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de 10up/action-wordpress-plugin-deploy

Todas as issues de 10up/action-wordpress-plugin-deploy

Issues semelhantes

Mais issues de Shell/Bash

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.