Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

357
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!