Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

355
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda