Minor, but recent changes to a GH Action introduced around 20 lines of shell code piped into a run action. This should be placed in a Bash script.