Deploys on the `release` event fails due to an upstream GitHub Actions issue.

Aberta
#175 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
65/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Pouca atividade
Stack de tecnologia
github-actions, shell, wordpress

Direção de pesquisa

Comece pelo workflow do evento de release e pela lógica de deploy que lê GITHUB_REF; em seguida, inspecione o exemplo documentado deploy-on-publishing-a-new-release-and-attach-a-zip-file-to-the-release.yml. Verifique se a tag do release está disponível por meio do evento de release, atualize a configuração afetada e reproduza um release publicado para confirmar que o plugin é implantado e que o exemplo corresponde à configuração funcional.

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

Descrição

help wanted

Describe the bug

The GITHUB_REF environment variable is undefined on the release event causing deploys to fail for workflows using the configuration to deploy on the event:

on:
  release:
    types: [published]

This is caused by an upstream bug in GitHub Actions resurfacing, see https://github.com/actions/runner/issues/2788#issuecomment-4769609787

A common workaround for repositories experiencing this issue is to use github.event.release.tag_name for the tag name using the release event. See https://github.com/dash14/buildcage/pull/106 for an example.

This is also affecting the zip uploading action recommended in the deploy-on-publishing-a-new-release-and-attach-a-zip-file-to-the-release.yml) example configuration. As part of resolving this issue, we will need to update the documented example.

Steps to Reproduce

  1. Configure a plugin to deploy on the release event
  2. Draft a new plugin release
  3. Publish the release
  4. Observe the action is failing to deploy as GITHUB_REF is undefined.
    The logs will show something along the lines of:
    ℹ︎ SLUG is plugin-slug
    ℹ︎ VERSION is 
    ℹ︎ ASSETS_DIR is .wordpress-org
    

See the action run for Simple Podcasting version 2.0.0.

Expected behavior
The plugin deploys

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.