Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

232
Visualizações
Is there a way to pass a github actions workflow job on addition of a PR label?

I am using danger to check for specific label being added, and on that check being true I then want to pass a workflow job which was previously failing e.g.

 const gitHubLabels = danger.github.issue.labels.map((label) => label.name.trim());
 const codeOwnerLabel = gitHubLabels.find((label) => label === 'CODE OWNER APPROVED');
 
 if (codeOwnerLabel) {
   // pass/ignore specific workflow job here
 }

There is this github endpoint https://docs.github.com/en/rest/reference/actions#list-jobs-for-a-workflow-run which lists all jobs and I can then use this to check for specific job but there is no endpoint to then pass that job somehow.

Does anyone have any other ideas?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Nevermind, the listForRef API (https://octokit.github.io/rest.js/v18#checks) gives information on the particular job check run so now I have the information to write my logic.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda