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

358
Visualizações
How to run a cat command in a GitHub action

I have a bash file that is supposed to optimize various parts of a site. One of such commands is concatenating multiple javascript files into one and removing the remaining duplicates.

The bash script works perfectly locally, but GitHub Actions seemingly ignores either the command itself or the newly added file from the concatenation.

I want to have the newly created file actually appear and be pushed to the production branch automatically.

Every other command in the script works, except for cat.

Example code:

cat js/styleswitch.js <(echo ";") js/navigation.js <(echo ";") js/browsercheck.js > js/header.js
rm js/styleswitch.js js/navigation.js
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The issue is that GitHub Actions hide created files, so trying to push them from a GitHub Action requires git add'ing the files. You can use git add -A to add every file the github action might have created before comitting and pushing.

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