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