Trigger a failure if not all files are added to SVN
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 42/100
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
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
- Build where the missing files (the
vendordirectory in this case) were not added due tovendorbeing present in thesvn:ignoreprop: https://github.com/johnbillion/wp-crontrol/runs/7270118515?check_suite_focus=true#step:8:70 - Discovery of the root cause: https://github.com/johnbillion/wp-crontrol/issues/85
- Linguagem predominante
- Shell
- Estrelas
- 665
- Forks
- 115
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de 10up/action-wordpress-plugin-deploy
-
help wanted
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
-
help wanted
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 65/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
10up/action-wordpress-plugin-deploy#172 · 2 comentários ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
10up/action-wordpress-plugin-deploy#146 · 10 comentários ·
Todas as issues de 10up/action-wordpress-plugin-deploy
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
pearu/agent-sandbox#422 ·
Mantenedores costumam responder em até 1 dia
-
area/ui enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
melgarafael/DeskcommCRM#4993 ·
Mantenedores costumam responder em até 1 dia
-
meta::needs triage
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 70/100
docker-mailserver/docker-mailserver#4864 ·
Mantenedores costumam responder em até 1 dia
-
Bump zig to >= 0.17.1 in main images: 0.17.0 emits duplicate LC_LOAD_DYLIB, darwin binaries abort in dyldTalvez já em andamento @SuperQ assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
prometheus/golang-builder#417 ·
Mantenedores costumam responder em até 1 dia
-
application-issue
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
Installomator/Installomator#3657 · 1 comentário ·
Mantenedores costumam responder em até 3 dias